From 9150db8f0f8012bddbc70d928f7391058c5c99b2 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Wed, 7 Mar 2012 09:28:11 +0000 Subject: [PATCH] Apply Michel Morin's decltype patch. [SVN r77256] --- include/boost/config/compiler/clang.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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