Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83625 - trunk/boost/config/compiler
From: mimomorin_at_[hidden]
Date: 2013-03-28 23:22:29


Author: michel
Date: 2013-03-28 23:22:28 EDT (Thu, 28 Mar 2013)
New Revision: 83625
URL: http://svn.boost.org/trac/boost/changeset/83625

Log:
gcc 4.8.1 and 4.9.0 support N3276 decltype feature
Text files modified:
   trunk/boost/config/compiler/gcc.hpp | 9 +++++++--
   1 files changed, 7 insertions(+), 2 deletions(-)

Modified: trunk/boost/config/compiler/gcc.hpp
==============================================================================
--- trunk/boost/config/compiler/gcc.hpp (original)
+++ trunk/boost/config/compiler/gcc.hpp 2013-03-28 23:22:28 EDT (Thu, 28 Mar 2013)
@@ -236,12 +236,17 @@
 #define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
 #endif
 
+// C++0x features in 4.7.n and later
+//
 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7) || !defined(__GXX_EXPERIMENTAL_CXX0X__)
 # define BOOST_NO_CXX11_TEMPLATE_ALIASES
 #endif
-// C++0x features not supported at all yet
+
+// C++0x features in 4.8.1 and later
 //
-#define BOOST_NO_CXX11_DECLTYPE_N3276
+#if (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__ < 40801) || !defined(__GXX_EXPERIMENTAL_CXX0X__)
+# define BOOST_NO_CXX11_DECLTYPE_N3276
+#endif
 
 #ifndef BOOST_COMPILER
 # define BOOST_COMPILER "GNU C++ version " __VERSION__


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