|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52381 - trunk/boost/config/compiler
From: daniel_james_at_[hidden]
Date: 2009-04-14 05:03:14
Author: danieljames
Date: 2009-04-14 05:03:13 EDT (Tue, 14 Apr 2009)
New Revision: 52381
URL: http://svn.boost.org/trac/boost/changeset/52381
Log:
Fix variadic template detection for mainline gcc. Fixes #2943
Text files modified:
trunk/boost/config/compiler/gcc.hpp | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
Modified: trunk/boost/config/compiler/gcc.hpp
==============================================================================
--- trunk/boost/config/compiler/gcc.hpp (original)
+++ trunk/boost/config/compiler/gcc.hpp 2009-04-14 05:03:13 EDT (Tue, 14 Apr 2009)
@@ -125,10 +125,19 @@
# define BOOST_HAS_DECLTYPE
# define BOOST_HAS_RVALUE_REFS
# define BOOST_HAS_STATIC_ASSERT
+# define BOOST_HAS_VARIADIC_TMPL
#else
# define BOOST_NO_DECLTYPE
# define BOOST_NO_RVALUE_REFERENCES
# define BOOST_NO_STATIC_ASSERT
+
+// Variadic templates compiler:
+// http://www.generic-programming.org/~dgregor/cpp/variadic-templates.html
+# ifdef __VARIADIC_TEMPLATES
+# define BOOST_HAS_VARIADIC_TMPL
+# else
+# define BOOST_NO_VARIADIC_TEMPLATES
+# endif
#endif
#if !defined(__GXX_EXPERIMENTAL_CXX0X__) || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4)
@@ -136,14 +145,6 @@
# define BOOST_NO_AUTO_DECLARATIONS
#endif
-// Variadic templates compiler:
-// http://www.generic-programming.org/~dgregor/cpp/variadic-templates.html
-#ifdef __VARIADIC_TEMPLATES
-# define BOOST_HAS_VARIADIC_TMPL
-#else
-# define BOOST_NO_VARIADIC_TEMPLATES
-#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