diff --git a/include/boost/config/compiler/clang.hpp b/include/boost/config/compiler/clang.hpp index 1b7fd926..9f1c2cd1 100644 --- a/include/boost/config/compiler/clang.hpp +++ b/include/boost/config/compiler/clang.hpp @@ -44,7 +44,9 @@ # define BOOST_NO_DECLTYPE #endif -#define BOOST_NO_DECLTYPE_N3276 +#if !__has_feature(__cxx_decltype__) +# define BOOST_NO_DECLTYPE_N3276 +#endif #if !__has_feature(cxx_defaulted_functions) # define BOOST_NO_DEFAULTED_FUNCTIONS