From 4c11df6feb29ec56090c1aa60b3f1c50d0a20ec0 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 9 Jul 2007 14:14:38 +0000 Subject: [PATCH] Fix compiler information for C++0x [SVN r38170] --- include/boost/config/compiler/gcc.hpp | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/include/boost/config/compiler/gcc.hpp b/include/boost/config/compiler/gcc.hpp index f1b7ba3e..1272a609 100644 --- a/include/boost/config/compiler/gcc.hpp +++ b/include/boost/config/compiler/gcc.hpp @@ -88,14 +88,11 @@ #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 2) // C++0x features are only enabled when -std=c++0x or -std=gnu++0x are // passed on the command line, which in turn defines -// __GXX_EXPERIMENTAL_CXX0X__. Note: __GXX_EXPERIMENTAL_CPP0X__ is -// defined by some very early development versions of GCC 4.3; we will -// remove this part of the check in the near future. -# if defined(__GXX_EXPERIMENTAL_CPP0X__) || defined(__GXX_EXPERIMENTAL_CXX0X__) +// __GXX_EXPERIMENTAL_CXX0X__. +# if defined(__GXX_EXPERIMENTAL_CXX0X__) # define BOOST_HAS_STATIC_ASSERT -# ifndef __STRICT_ANSI__ -# define BOOST_HAS_VARIADIC_TMPL -# endif +# define BOOST_HAS_VARIADIC_TMPL +# define BOOST_HAS_RVALUE_REFS # endif #endif @@ -109,16 +106,10 @@ # define BOOST_HAS_VARIADIC_TMPL #endif -// Rvalue reference support -#ifdef __RVALUE_REFS -# define BOOST_HAS_RVALUE_REFS -#endif - // ConceptGCC compiler: // http://www.generic-programming.org/software/ConceptGCC/ #ifdef __GXX_CONCEPTS__ # define BOOST_HAS_CONCEPTS -# define BOOST_HAS_RVALUE_REFS # define BOOST_COMPILER "ConceptGCC version " __VERSION__ #endif