Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62085 - in trunk: boost/config boost/config/stdlib libs/config/test
From: john_at_[hidden]
Date: 2010-05-18 12:27:12


Author: johnmaddock
Date: 2010-05-18 12:27:11 EDT (Tue, 18 May 2010)
New Revision: 62085
URL: http://svn.boost.org/trac/boost/changeset/62085

Log:
Enhance test case for <tuple>.
Update VC10's configuration with more C++0x features enabled.
Text files modified:
   trunk/boost/config/stdlib/dinkumware.hpp | 6 +++++-
   trunk/boost/config/suffix.hpp | 7 +++++++
   trunk/libs/config/test/boost_no_0x_hdr_tuple.ipp | 1 +
   3 files changed, 13 insertions(+), 1 deletions(-)

Modified: trunk/boost/config/stdlib/dinkumware.hpp
==============================================================================
--- trunk/boost/config/stdlib/dinkumware.hpp (original)
+++ trunk/boost/config/stdlib/dinkumware.hpp 2010-05-18 12:27:11 EDT (Tue, 18 May 2010)
@@ -105,6 +105,11 @@
 # define BOOST_NO_STD_UNORDERED // deprecated; see following
 # define BOOST_NO_0X_HDR_UNORDERED_MAP
 # define BOOST_NO_0X_HDR_UNORDERED_SET
+# define BOOST_NO_0X_HDR_TUPLE
+#endif
+
+#if !defined(_HAS_TR1_IMPORTS) && !defined(BOOST_NO_0X_HDR_TUPLE)
+# define BOOST_NO_0X_HDR_TUPLE
 #endif
 
 // C++0x headers not yet implemented
@@ -119,7 +124,6 @@
 # define BOOST_NO_0X_HDR_MUTEX
 # define BOOST_NO_0X_HDR_RATIO
 # define BOOST_NO_0X_HDR_THREAD
-# define BOOST_NO_0X_HDR_TUPLE
 
 #ifdef _CPPLIB_VER
 # define BOOST_DINKUMWARE_STDLIB _CPPLIB_VER

Modified: trunk/boost/config/suffix.hpp
==============================================================================
--- trunk/boost/config/suffix.hpp (original)
+++ trunk/boost/config/suffix.hpp 2010-05-18 12:27:11 EDT (Tue, 18 May 2010)
@@ -83,6 +83,13 @@
 #endif
 
 //
+// Normalize BOOST_NO_STATIC_ASSERT and (depricated) BOOST_HAS_STATIC_ASSERT:
+//
+#if !defined(BOOST_NO_STATIC_ASSERT) && !defined(BOOST_HAS_STATIC_ASSERT)
+# define BOOST_HAS_STATIC_ASSERT
+#endif
+
+//
 // if there is no __int64 then there is no specialisation
 // for numeric_limits<__int64> either:
 //

Modified: trunk/libs/config/test/boost_no_0x_hdr_tuple.ipp
==============================================================================
--- trunk/libs/config/test/boost_no_0x_hdr_tuple.ipp (original)
+++ trunk/libs/config/test/boost_no_0x_hdr_tuple.ipp 2010-05-18 12:27:11 EDT (Tue, 18 May 2010)
@@ -16,6 +16,7 @@
 
 int test()
 {
+ std::tuple<int, int, long> t(0, 1, 2);
   return 0;
 }
 


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