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:
morinmorin
2014-10-26 11:16:53 +09:00
parent 224d70f02a
commit db66a9f051

View File

@ -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