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]
This commit is contained in:
Michel Morin
2012-03-30 17:47:34 +00:00
parent 33437e724e
commit 6074729601

View File

@ -71,8 +71,9 @@
# define BOOST_NO_LAMBDAS # define BOOST_NO_LAMBDAS
#endif #endif
#if __clang_major__ < 2 || (__clang_major__ == 2 && __clang_minor__ < 9) #if !(defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L) \
# define BOOST_NO_LOCAL_CLASS_TEMPLATE_PARAMETERS // From version 2.9 on. || __clang_major__ < 2 || (__clang_major__ == 2 && __clang_minor__ < 8)
# define BOOST_NO_LOCAL_CLASS_TEMPLATE_PARAMETERS
#endif #endif
#if !__has_feature(cxx_noexcept) #if !__has_feature(cxx_noexcept)