|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r77649 - trunk/boost/config/compiler
From: mimomorin_at_[hidden]
Date: 2012-03-30 13:47:39
Author: michel
Date: 2012-03-30 13:47:34 EDT (Fri, 30 Mar 2012)
New Revision: 77649
URL: http://svn.boost.org/trac/boost/changeset/77649
Log:
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).
Text files modified:
trunk/boost/config/compiler/clang.hpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Modified: trunk/boost/config/compiler/clang.hpp
==============================================================================
--- trunk/boost/config/compiler/clang.hpp (original)
+++ trunk/boost/config/compiler/clang.hpp 2012-03-30 13:47:34 EDT (Fri, 30 Mar 2012)
@@ -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)
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk