forked from boostorg/config
Add C++14 support based on https://github.com/boostorg/config/pull/39
This commit is contained in:
1 parent
35faf7816c
commit
b811dd40ae
49 files changed
+4577
-3188
No files matched your search
@@ -870,6 +870,50 @@ release supports the CTP features.
|
||||
|
||||
[endsect]
|
||||
|
||||
[section Macros that describe C++14 features not supported]
|
||||
|
||||
The following macros describe features in the 2014 ISO C++ standard, formerly known as C++0y,
|
||||
that are not yet supported by a particular compiler or library.
|
||||
|
||||
[table
|
||||
[[Macro ][Description ]]
|
||||
[[`BOOST_NO_CXX14_AGGREGATE_NSDMI`][The compiler does not support member initializer for aggregates as in the following example:
|
||||
[[`BOOST_NO_CXX14_BINARY_LITERALS`][The compiler does not binary literals (e.g. `0b1010`).]]
|
||||
[[`BOOST_NO_CXX14_CONSTEXPR`][The compiler does not support relaxed `constexpr`.]]
|
||||
[[`BOOST_NO_CXX14_DECLTYPE_AUTO`][The compiler does not support `decltype(auto)`.]]
|
||||
[[`BOOST_NO_CXX14_DIGIT_SEPARATOR`][The compiler does not support digit separators (e.g. `1'000'000`).]]
|
||||
[[`BOOST_NO_CXX14_GENERIC_LAMBDAS`][The compiler does not support generic lambda (e.g. `[](auto v){ }`).]]
|
||||
[[`BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURE`][The compiler does not support initialized lambda capture (e.g. `[foo = 42]{ }`).]]
|
||||
[[`BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION`][The compiler does not support return type deduction for normal functions (e.g. `auto f() { return val; }`).]]
|
||||
[[`BOOST_NO_CXX14_VARIABLE_TEMPLATES`][The compiler does not support variable template (e.g. `template <class T> T kibi = T(1024);`).]]
|
||||
[:
|
||||
``
|
||||
struct Foo
|
||||
{
|
||||
int x, y = 42;
|
||||
};
|
||||
Foo foo = { 0 };
|
||||
``
|
||||
]
|
||||
]]
|
||||
]
|
||||
|
||||
[endsect]
|
||||
|
||||
[#config_14_for_11]
|
||||
|
||||
[section Macros that allow use of C++14 features with C++11 or earlier compilers]
|
||||
|
||||
The following macros allow use of C++14 features even with compilers that do not yet
|
||||
provide compliant C++14 support.
|
||||
|
||||
[table
|
||||
[[Macro ][ Description ]]
|
||||
[[`BOOST_CXX14_CONSTEXPR`][This macro works similar to BOOST_CONSTEXPR, but expands to `constexpr` only if the C++14 "relaxed" `constexpr` is available.]]
|
||||
]
|
||||
|
||||
[endsect]
|
||||
|
||||
[#config_helpers]
|
||||
|
||||
[section Boost Helper Macros]
|
||||
|
||||
Reference in new issue
Block a user