From 6074729601b9787ce1d9ab871421bd050ab7daf6 Mon Sep 17 00:00:00 2001 From: Michel Morin Date: Fri, 30 Mar 2012 17:47:34 +0000 Subject: [PATCH] Appease clang for BOOST_NO_LOCAL_CLASS_TEMPLATE_PARAMETERS. The use of a version check to determine the feature support is not recommended in clang. But we do the version check, since clang does not have a querying macro for this feature. This is an unfortunate workaround. We need to observe carefully the effect of the version check on vendor versions of clang (other than the LLVM project's clang). [SVN r77649] --- include/boost/config/compiler/clang.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/boost/config/compiler/clang.hpp b/include/boost/config/compiler/clang.hpp index 8c82f67b..6adbec1b 100644 --- a/include/boost/config/compiler/clang.hpp +++ b/include/boost/config/compiler/clang.hpp @@ -71,8 +71,9 @@ # define BOOST_NO_LAMBDAS #endif -#if __clang_major__ < 2 || (__clang_major__ == 2 && __clang_minor__ < 9) -# define BOOST_NO_LOCAL_CLASS_TEMPLATE_PARAMETERS // From version 2.9 on. +#if !(defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L) \ + || __clang_major__ < 2 || (__clang_major__ == 2 && __clang_minor__ < 8) +# define BOOST_NO_LOCAL_CLASS_TEMPLATE_PARAMETERS #endif #if !__has_feature(cxx_noexcept)