|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r55145 - trunk/boost/config/compiler
From: bdawes_at_[hidden]
Date: 2009-07-24 11:46:02
Author: bemandawes
Date: 2009-07-24 11:46:01 EDT (Fri, 24 Jul 2009)
New Revision: 55145
URL: http://svn.boost.org/trac/boost/changeset/55145
Log:
gcc 4.4.1 fixed scoped enum bug so don't define BOOST_NO_SCOPED_ENUMS (François Barel)
Text files modified:
trunk/boost/config/compiler/gcc.hpp | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
Modified: trunk/boost/config/compiler/gcc.hpp
==============================================================================
--- trunk/boost/config/compiler/gcc.hpp (original)
+++ trunk/boost/config/compiler/gcc.hpp 2009-07-24 11:46:01 EDT (Fri, 24 Jul 2009)
@@ -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__
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