Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53155 - in trunk: boost/config/compiler boost/config/stdlib libs/config/test libs/config/test/all
From: bdawes_at_[hidden]
Date: 2009-05-21 11:16:41


Author: bemandawes
Date: 2009-05-21 11:16:39 EDT (Thu, 21 May 2009)
New Revision: 53155
URL: http://svn.boost.org/trac/boost/changeset/53155

Log:
set up config for VC++ 2010 beta 1
Text files modified:
   trunk/boost/config/compiler/visualc.hpp | 26 +++++++++++++++-----------
   trunk/boost/config/stdlib/dinkumware.hpp | 27 ++++++++++++++++-----------
   trunk/libs/config/test/all/Jamfile.v2 | 2 +-
   trunk/libs/config/test/boost_no_lambdas.ipp | 8 +++-----
   trunk/libs/config/test/config_info.cpp | 1 +
   trunk/libs/config/test/config_test.cpp | 2 +-
   6 files changed, 37 insertions(+), 29 deletions(-)

Modified: trunk/boost/config/compiler/visualc.hpp
==============================================================================
--- trunk/boost/config/compiler/visualc.hpp (original)
+++ trunk/boost/config/compiler/visualc.hpp 2009-05-21 11:16:39 EDT (Thu, 21 May 2009)
@@ -142,10 +142,24 @@
 // all versions support __declspec:
 //
 #define BOOST_HAS_DECLSPEC
+
 //
 // C++0x features
 //
 // See above for BOOST_NO_LONG_LONG
+
+// C++ features supported by VC++ 10 (aka 2010)
+//
+#if _MSC_VER < 1600
+#define BOOST_NO_AUTO_DECLARATIONS
+#define BOOST_NO_AUTO_MULTIDECLARATIONS
+#define BOOST_NO_DECLTYPE
+#define BOOST_NO_LAMBDAS
+#define BOOST_NO_RVALUE_REFERENCES
+#define BOOST_NO_STATIC_ASSERT
+#endif // _MSC_VER < 1600
+
+// C++0x features not supported by any versions
 #define BOOST_NO_CHAR16_T
 #define BOOST_NO_CHAR32_T
 #define BOOST_NO_CONCEPTS
@@ -162,16 +176,6 @@
 #define BOOST_NO_UNICODE_LITERALS
 #define BOOST_NO_VARIADIC_TEMPLATES
 
-// MSVC 2010 will have some support for C++0x, but we disable it until the beta ships
-// #if _MSC_VER < 1600
-#define BOOST_NO_AUTO_DECLARATIONS
-#define BOOST_NO_AUTO_MULTIDECLARATIONS
-#define BOOST_NO_DECLTYPE
-#define BOOST_NO_LAMBDAS
-#define BOOST_NO_RVALUE_REFERENCES
-#define BOOST_NO_STATIC_ASSERT
-// #endif // _MSC_VER < 1600
-
 //
 // prefix and suffix headers:
 //
@@ -236,7 +240,7 @@
 #error "Compiler not supported or configured - please reconfigure"
 #endif
 //
-// last known and checked version is 1500 (VC9):
+// last known and checked version is 1600 (VC10, aka 2010):
 #if (_MSC_VER > 1600)
 # if defined(BOOST_ASSERT_CONFIG)
 # error "Unknown compiler version - please run the configure tests and report the results"

Modified: trunk/boost/config/stdlib/dinkumware.hpp
==============================================================================
--- trunk/boost/config/stdlib/dinkumware.hpp (original)
+++ trunk/boost/config/stdlib/dinkumware.hpp 2009-05-21 11:16:39 EDT (Thu, 21 May 2009)
@@ -84,30 +84,35 @@
 # define BOOST_NO_STD_LOCALE
 #endif
 
-// C++0x headers not yet implemented
+// C++0x headers implemented in 520 (as shipped by Microsoft)
 //
+#if !defined(_CPPLIB_VER) || _CPPLIB_VER < 520
 # define BOOST_NO_0X_HDR_ARRAY
-# define BOOST_NO_0X_HDR_CHRONO
 # define BOOST_NO_0X_HDR_CODECVT
+# define BOOST_NO_0X_HDR_FORWARD_LIST
+# define BOOST_NO_0X_HDR_INITIALIZER_LIST
+# define BOOST_NO_0X_HDR_RANDOM
+# define BOOST_NO_0X_HDR_REGEX
+# define BOOST_NO_0X_HDR_SYSTEM_ERROR
+# define BOOST_NO_0X_HDR_TYPE_TRAITS
+# define BOOST_NO_STD_UNORDERED // deprecated; see following
+# define BOOST_NO_0X_HDR_UNORDERED_MAP
+# define BOOST_NO_0X_HDR_UNORDERED_SET
+#endif
+
+// C++0x headers not yet implemented
+//
+# define BOOST_NO_0X_HDR_CHRONO
 # define BOOST_NO_0X_HDR_CONCEPTS
 # define BOOST_NO_0X_HDR_CONDITION_VARIABLE
 # define BOOST_NO_0X_HDR_CONTAINER_CONCEPTS
-# define BOOST_NO_0X_HDR_FORWARD_LIST
 # define BOOST_NO_0X_HDR_FUTURE
-# define BOOST_NO_0X_HDR_INITIALIZER_LIST
 # define BOOST_NO_0X_HDR_ITERATOR_CONCEPTS
 # define BOOST_NO_0X_HDR_MEMORY_CONCEPTS
 # define BOOST_NO_0X_HDR_MUTEX
-# define BOOST_NO_0X_HDR_RANDOM
 # define BOOST_NO_0X_HDR_RATIO
-# define BOOST_NO_0X_HDR_REGEX
-# define BOOST_NO_0X_HDR_SYSTEM_ERROR
 # define BOOST_NO_0X_HDR_THREAD
 # define BOOST_NO_0X_HDR_TUPLE
-# define BOOST_NO_0X_HDR_TYPE_TRAITS
-# define BOOST_NO_STD_UNORDERED // deprecated; see following
-# define BOOST_NO_0X_HDR_UNORDERED_MAP
-# define BOOST_NO_0X_HDR_UNORDERED_SET
 
 #ifdef _CPPLIB_VER
 # define BOOST_DINKUMWARE_STDLIB _CPPLIB_VER

Modified: trunk/libs/config/test/all/Jamfile.v2
==============================================================================
--- trunk/libs/config/test/all/Jamfile.v2 (original)
+++ trunk/libs/config/test/all/Jamfile.v2 2009-05-21 11:16:39 EDT (Thu, 21 May 2009)
@@ -1,7 +1,7 @@
 #
 # Regression test Jamfile for boost configuration setup.
 # *** DO NOT EDIT THIS FILE BY HAND ***
-# This file was automatically generated on Fri May 15 12:45:15 2009
+# This file was automatically generated on Thu May 21 11:08:48 2009
 # by libs/config/tools/generate.cpp
 # Copyright John Maddock.
 # Use, modification and distribution are subject to the

Modified: trunk/libs/config/test/boost_no_lambdas.ipp
==============================================================================
--- trunk/libs/config/test/boost_no_lambdas.ipp (original)
+++ trunk/libs/config/test/boost_no_lambdas.ipp 2009-05-21 11:16:39 EDT (Thu, 21 May 2009)
@@ -7,16 +7,14 @@
 // See http://www.boost.org/libs/config for more information.
 
 // MACRO: BOOST_NO_LAMBDAS
-// TITLE: C++0x lambdas feature unavailable
-// DESCRIPTION: The compiler does not support the C++0x lambdas feature
-
-#include <cassert>
+// TITLE: C++0x lambda feature unavailable
+// DESCRIPTION: The compiler does not support the C++0x lambda feature
 
 namespace boost_no_lambdas {
 
 int test()
 {
- assert( 12345 == [](){return 12345;} );
+ [](){};
   return 0;
 }
 

Modified: trunk/libs/config/test/config_info.cpp
==============================================================================
--- trunk/libs/config/test/config_info.cpp (original)
+++ trunk/libs/config/test/config_info.cpp 2009-05-21 11:16:39 EDT (Thu, 21 May 2009)
@@ -1072,6 +1072,7 @@
 
 
 
+
    // END GENERATED BLOCK
 
    PRINT_MACRO(BOOST_INTEL);

Modified: trunk/libs/config/test/config_test.cpp
==============================================================================
--- trunk/libs/config/test/config_test.cpp (original)
+++ trunk/libs/config/test/config_test.cpp 2009-05-21 11:16:39 EDT (Thu, 21 May 2009)
@@ -1,4 +1,4 @@
-// This file was automatically generated on Fri May 15 12:45:15 2009
+// This file was automatically generated on Thu May 21 11:08:48 2009
 // by libs/config/tools/generate.cpp
 // Copyright John Maddock 2002-4.
 // Use, modification and distribution are subject to the


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