mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
Remove __has_extension
macros for features that emit warnings.
Variable templates can be used in C++03/11 and initialized lambda captures can be used in C++11 as language extensions, but they trigger "extension" warnings. Disallow these extensions to prevent the warning.
This commit is contained in:
@ -217,7 +217,7 @@
|
||||
# define BOOST_NO_CXX14_AGGREGATE_NSDMI
|
||||
#endif
|
||||
|
||||
#if !(__has_feature(cxx_init_captures) || __has_extension(cxx_init_captures))
|
||||
#if !__has_feature(cxx_init_captures)
|
||||
# define BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES
|
||||
#endif
|
||||
|
||||
@ -248,7 +248,7 @@
|
||||
# define BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION
|
||||
#endif
|
||||
|
||||
#if !(__has_feature(cxx_variable_templates) || __has_extension(cxx_variable_templates))
|
||||
#if !__has_feature(cxx_variable_templates)
|
||||
# define BOOST_NO_CXX14_VARIABLE_TEMPLATES
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user