From 2dfa0e4dd2f0ad34eb6077bcba33e0bc9c970b6e Mon Sep 17 00:00:00 2001 From: John Maddock Date: Wed, 30 Mar 2011 18:24:18 +0000 Subject: [PATCH] Update gcc-4.6.0 config and tests to match. [SVN r70754] --- include/boost/config/stdlib/libstdcpp3.hpp | 6 +++++- test/boost_no_constexpr.ipp | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/boost/config/stdlib/libstdcpp3.hpp b/include/boost/config/stdlib/libstdcpp3.hpp index 2a54fd18..52d58373 100644 --- a/include/boost/config/stdlib/libstdcpp3.hpp +++ b/include/boost/config/stdlib/libstdcpp3.hpp @@ -139,11 +139,15 @@ # define BOOST_NO_0X_HDR_RANDOM #endif +// C++0x features in GCC 4.5.0 and later +// +#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6) || !defined(__GXX_EXPERIMENTAL_CXX0X__) +# define BOOST_NO_0X_HDR_TYPEINDEX +#endif // C++0x headers not yet (fully!) implemented // # define BOOST_NO_0X_HDR_THREAD # define BOOST_NO_0X_HDR_TYPE_TRAITS # define BOOST_NO_0X_HDR_CODECVT -# define BOOST_NO_0X_HDR_TYPEINDEX // --- end --- diff --git a/test/boost_no_constexpr.ipp b/test/boost_no_constexpr.ipp index 0143f55c..c246e234 100644 --- a/test/boost_no_constexpr.ipp +++ b/test/boost_no_constexpr.ipp @@ -32,7 +32,7 @@ template struct X { }; constexpr A a = 42; -X x; // OK: unique conversion to int +X xx; // OK: unique conversion to int int test() {