From 714548f437f9f88df62f78b345455c53823a6620 Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Fri, 24 Jul 2009 15:46:01 +0000 Subject: [PATCH] =?UTF-8?q?gcc=204.4.1=20fixed=20scoped=20enum=20bug=20so?= =?UTF-8?q?=20don't=20define=20BOOST=5FNO=5FSCOPED=5FENUMS=20(Fran=C3=A7oi?= =?UTF-8?q?s=20Barel)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [SVN r55145] --- include/boost/config/compiler/gcc.hpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/include/boost/config/compiler/gcc.hpp b/include/boost/config/compiler/gcc.hpp index 94653c89..705ff1b8 100644 --- a/include/boost/config/compiler/gcc.hpp +++ b/include/boost/config/compiler/gcc.hpp @@ -109,9 +109,6 @@ #define BOOST_NO_LAMBDAS #define BOOST_NO_NULLPTR #define BOOST_NO_RAW_LITERALS -// scoped enums have a serious bug in 4.4.0, so define BOOST_NO_SCOPED_ENUMS until it -// gets fixed. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38064 -#define BOOST_NO_SCOPED_ENUMS #define BOOST_NO_TEMPLATE_ALIASES // C++0x features in 4.3.n and later @@ -152,6 +149,14 @@ # define BOOST_NO_UNICODE_LITERALS #endif +// C++0x features in 4.4.1 and later +// +#if (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__ < 40401) || !defined(__GXX_EXPERIMENTAL_CXX0X__) +// scoped enums have a serious bug in 4.4.0, so define BOOST_NO_SCOPED_ENUMS before 4.4.1 +// See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38064 +# define BOOST_NO_SCOPED_ENUMS +#endif + // ConceptGCC compiler: // http://www.generic-programming.org/software/ConceptGCC/ #ifdef __GXX_CONCEPTS__