Update of /cvsroot/boost/boost/boost/config/compiler
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2827/boost/config/compiler
Modified Files:
gcc.hpp
Log Message:
Preliminary C++0x support
Index: gcc.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/config/compiler/gcc.hpp,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- gcc.hpp 12 May 2005 16:28:44 -0000 1.28
+++ gcc.hpp 22 Nov 2006 15:58:39 -0000 1.29
@@ -82,7 +82,41 @@
#define BOOST_HAS_NRVO
#endif
-#define BOOST_COMPILER "GNU C++ version " __VERSION__
+//
+// C++0x features
+//
+#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__)
+# define BOOST_CXX0X_PREPROCESSOR
+# define BOOST_CXX0X_STATIC_ASSERT
+# endif
+#endif
+
+//
+// Potential C++0x features
+//
+
+// Variadic templates compiler:
+// http://www.generic-programming.org/~dgregor/cpp/variadic-templates.html
+#ifdef __VARIADIC_TEMPLATES
+# define BOOST_CXX0X_VARIADIC_TEMPLATES
+#endif
+
+// ConceptGCC compiler:
+// http://www.generic-programming.org/software/ConceptGCC/
+#ifdef __GXX_CONCEPTS__
+# define BOOST_CXX0X_CONCEPTS
+# define "ConceptGCC version " __VERSION__
+#endif
+
+#ifndef BOOST_COMPILER
+# define BOOST_COMPILER "GNU C++ version " __VERSION__
+#endif
//
// versions check:
@@ -91,8 +125,8 @@
# error "Compiler not configured - please reconfigure"
#endif
//
-// last known and checked version is 4.0 (Pre-release):
-#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 0))
+// last known and checked version is 4.3 (Pre-release):
+#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 3))
# if defined(BOOST_ASSERT_CONFIG)
# error "Unknown compiler version - please run the configure tests and
report the results"
# else
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs