Enhance test case for <tuple>.

Update VC10's configuration with more C++0x features enabled.

[SVN r62085]
This commit is contained in:
John Maddock
2010-05-18 16:27:11 +00:00
parent bbf9896006
commit a134372b3e
3 changed files with 13 additions and 1 deletions

View File

@ -105,6 +105,11 @@
# define BOOST_NO_STD_UNORDERED // deprecated; see following # define BOOST_NO_STD_UNORDERED // deprecated; see following
# define BOOST_NO_0X_HDR_UNORDERED_MAP # define BOOST_NO_0X_HDR_UNORDERED_MAP
# define BOOST_NO_0X_HDR_UNORDERED_SET # 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 #endif
// C++0x headers not yet implemented // C++0x headers not yet implemented
@ -119,7 +124,6 @@
# define BOOST_NO_0X_HDR_MUTEX # define BOOST_NO_0X_HDR_MUTEX
# define BOOST_NO_0X_HDR_RATIO # define BOOST_NO_0X_HDR_RATIO
# define BOOST_NO_0X_HDR_THREAD # define BOOST_NO_0X_HDR_THREAD
# define BOOST_NO_0X_HDR_TUPLE
#ifdef _CPPLIB_VER #ifdef _CPPLIB_VER
# define BOOST_DINKUMWARE_STDLIB _CPPLIB_VER # define BOOST_DINKUMWARE_STDLIB _CPPLIB_VER

View File

@ -82,6 +82,13 @@
# define BOOST_NO_LONG_LONG_NUMERIC_LIMITS # define BOOST_NO_LONG_LONG_NUMERIC_LIMITS
#endif #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 // if there is no __int64 then there is no specialisation
// for numeric_limits<__int64> either: // for numeric_limits<__int64> either:

View File

@ -16,6 +16,7 @@ namespace boost_no_0x_hdr_tuple {
int test() int test()
{ {
std::tuple<int, int, long> t(0, 1, 2);
return 0; return 0;
} }