From db66a9f051ce5c8de48c28f67f117a9bc250bf01 Mon Sep 17 00:00:00 2001 From: morinmorin Date: Sun, 26 Oct 2014 11:16:53 +0900 Subject: [PATCH] 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. --- include/boost/config/compiler/clang.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/config/compiler/clang.hpp b/include/boost/config/compiler/clang.hpp index 95ddcbef..a2f9e323 100644 --- a/include/boost/config/compiler/clang.hpp +++ b/include/boost/config/compiler/clang.hpp @@ -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