forked from boostorg/config
Remove __has_extension
checks for features that are not available as extensions.
For those features, `__has_extension` checks are equivalent to `__has_feature` checks and thus they are unnecessary.
This commit is contained in:
@@ -189,7 +189,7 @@
|
|||||||
# define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
# define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !(__has_feature(cxx_alignas) || __has_extension(cxx_alignas))
|
#if !__has_feature(cxx_alignas)
|
||||||
# define BOOST_NO_CXX11_ALIGNAS
|
# define BOOST_NO_CXX11_ALIGNAS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -209,11 +209,11 @@
|
|||||||
# define BOOST_NO_CXX14_BINARY_LITERALS
|
# define BOOST_NO_CXX14_BINARY_LITERALS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !(__has_feature(__cxx_decltype_auto__) || __has_extension(__cxx_decltype_auto__))
|
#if !__has_feature(__cxx_decltype_auto__)
|
||||||
# define BOOST_NO_CXX14_DECLTYPE_AUTO
|
# define BOOST_NO_CXX14_DECLTYPE_AUTO
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !(__has_feature(__cxx_aggregate_nsdmi__) || __has_extension(__cxx_aggregate_nsdmi__))
|
#if !__has_feature(__cxx_aggregate_nsdmi__)
|
||||||
# define BOOST_NO_CXX14_AGGREGATE_NSDMI
|
# define BOOST_NO_CXX14_AGGREGATE_NSDMI
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -221,7 +221,7 @@
|
|||||||
# define BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES
|
# define BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !(__has_feature(__cxx_generic_lambdas__) || __has_extension(__cxx_generic_lambdas__))
|
#if !__has_feature(__cxx_generic_lambdas__)
|
||||||
# define BOOST_NO_CXX14_GENERIC_LAMBDAS
|
# define BOOST_NO_CXX14_GENERIC_LAMBDAS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -239,12 +239,11 @@
|
|||||||
// so instead verify that we have a feature that was introduced at the same time as working C++14
|
// so instead verify that we have a feature that was introduced at the same time as working C++14
|
||||||
// constexpr (generic lambda's in this case):
|
// constexpr (generic lambda's in this case):
|
||||||
//
|
//
|
||||||
#if !__has_feature(__cxx_generic_lambdas__) \
|
#if !__has_feature(__cxx_generic_lambdas__) || !__has_feature(__cxx_relaxed_constexpr__)
|
||||||
|| !(__has_feature(__cxx_relaxed_constexpr__) || __has_extension(__cxx_relaxed_constexpr__))
|
|
||||||
# define BOOST_NO_CXX14_CONSTEXPR
|
# define BOOST_NO_CXX14_CONSTEXPR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !(__has_feature(__cxx_return_type_deduction__) || __has_extension(__cxx_return_type_deduction__))
|
#if !__has_feature(__cxx_return_type_deduction__)
|
||||||
# define BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION
|
# define BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user