Merge config updates from Trunk.

[SVN r81827]
This commit is contained in:
John Maddock committed 2012-12-10 17:26:30 +00:00
1 parent f1d572cf03
commit c87231f411
24 files changed
+2755 -2145

No files matched your search

+475 -475
View File
File diff suppressed because it is too large. Load diff
+2 -2
View File
@@ -11,12 +11,12 @@
// or hash_map classes.
#if defined(__GLIBCXX__) || (defined(__GLIBCPP__) && __GLIBCPP__>=20020514) // GCC >= 3.1.0
# ifdef BOOST_NO_STD_UNORDERED
# ifdef BOOST_NO_CXX11_STD_UNORDERED
# define BOOST_STD_EXTENSION_NAMESPACE __gnu_cxx
# include <ext/hash_set>
# include <ext/hash_map>
# else
// If we have BOOST_NO_STD_UNORDERED *not* defined, then we must
// If we have BOOST_NO_CXX11_STD_UNORDERED *not* defined, then we must
// not include the <ext/*> headers as they clash with the C++0x
// headers. ie in any given translation unit we can include one
// or the other, but not both.
+36
View File
@@ -0,0 +1,36 @@
// (C) Copyright John Maddock 2012.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/config for most recent version.
// MACRO: BOOST_HAS_INT128
// TITLE: __int128
// DESCRIPTION: The platform supports __int128.
#include <cstdlib>
namespace boost_has_int128{
int test()
{
#ifdef __GNUC__
__extension__ __int128 lli = 0;
__extension__ unsigned __int128 ulli = 0u;
#else
__int128 lli = 0;
unsigned __int128 ulli = 0u;
#endif
(void)&lli;
(void)&ulli;
return 0;
}
}
-1
View File
@@ -25,7 +25,6 @@ int test()
atomic_store(&spi, spi2);
atomic_store_explicit(&spi, spi2, std::memory_order_relaxed);
atomic_exchange(&spi, spi2);
atomic_exchange_explicit(&spi, std::memory_order_relaxed);
atomic_compare_exchange_weak(&spi, &spi2, spi);
atomic_compare_exchange_strong(&spi, &spi2, spi);
atomic_compare_exchange_weak_explicit(&spi, &spi2, spi, std::memory_order_relaxed, std::memory_order_relaxed);
-1
View File
@@ -26,7 +26,6 @@ int test()
using std::promise;
using std::future;
using std::shared_future;
using std::atomic_future;
using std::packaged_task; // undefined
using std::async;
return 0;
-1
View File
@@ -76,7 +76,6 @@ int test()
using std::is_same;
using std::is_base_of;
using std::is_convertible;
using std::is_explicitly_convertible;
using std::remove_const;
using std::remove_volatile;
using std::remove_cv;
-27
View File
@@ -1,27 +0,0 @@
// (C) Copyright John Maddock and Dave Abrahams 2002.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/config for most recent version.
// MACRO: BOOST_NO_STD_UNORDERED
// TITLE: <unordered_map> and <unordered_set>
// DESCRIPTION: Check for C++0x unordered container support
#include <unordered_map>
#include <unordered_set>
namespace boost_no_std_unordered{
int test()
{
std::unordered_map<int, int> im;
std::unordered_set<int> is;
std::unordered_multimap<int, int> imm;
std::unordered_multiset<int> ims;
return im.size() + is.size() + imm.size() + ims.size(); // all zero
}
}
+3 -2
View File
@@ -936,6 +936,7 @@ void print_boost_macros()
PRINT_MACRO(BOOST_HAS_GETSYSTEMTIMEASFILETIME);
PRINT_MACRO(BOOST_HAS_GETTIMEOFDAY);
PRINT_MACRO(BOOST_HAS_HASH);
PRINT_MACRO(BOOST_HAS_INT128);
PRINT_MACRO(BOOST_HAS_LOG1P);
PRINT_MACRO(BOOST_HAS_LONG_LONG);
PRINT_MACRO(BOOST_HAS_MACRO_USE_FACET);
@@ -1026,6 +1027,7 @@ void print_boost_macros()
PRINT_MACRO(BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS);
PRINT_MACRO(BOOST_NO_CXX11_NOEXCEPT);
PRINT_MACRO(BOOST_NO_CXX11_NULLPTR);
PRINT_MACRO(BOOST_NO_CXX11_NUMERIC_LIMITS);
PRINT_MACRO(BOOST_NO_CXX11_RANGE_BASED_FOR);
PRINT_MACRO(BOOST_NO_CXX11_RAW_LITERALS);
PRINT_MACRO(BOOST_NO_CXX11_RVALUE_REFERENCES);
@@ -1061,7 +1063,6 @@ void print_boost_macros()
PRINT_MACRO(BOOST_NO_MEMBER_TEMPLATE_KEYWORD);
PRINT_MACRO(BOOST_NO_MS_INT64_NUMERIC_LIMITS);
PRINT_MACRO(BOOST_NO_NESTED_FRIENDSHIP);
PRINT_MACRO(BOOST_NO_CXX11_NUMERIC_LIMITS);
PRINT_MACRO(BOOST_NO_OPERATORS_IN_NAMESPACE);
PRINT_MACRO(BOOST_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS);
PRINT_MACRO(BOOST_NO_POINTER_TO_MEMBER_CONST);
@@ -1080,7 +1081,6 @@ void print_boost_macros()
PRINT_MACRO(BOOST_NO_STD_MIN_MAX);
PRINT_MACRO(BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN);
PRINT_MACRO(BOOST_NO_STD_TYPEINFO);
PRINT_MACRO(BOOST_NO_STD_UNORDERED);
PRINT_MACRO(BOOST_NO_STD_USE_FACET);
PRINT_MACRO(BOOST_NO_STD_WSTREAMBUF);
PRINT_MACRO(BOOST_NO_STD_WSTRING);
@@ -1116,6 +1116,7 @@ void print_boost_macros()
// END GENERATED BLOCK
+1480 -1480
View File
File diff suppressed because it is too large. Load diff
@@ -1,4 +1,4 @@
// This file was automatically generated on Tue Dec 16 16:41:40 2008
// This file was automatically generated on Thu Oct 25 10:14:36 2012
// by libs/config/tools/generate.cpp
// Copyright John Maddock 2002-4.
// Use, modification and distribution are subject to the
@@ -6,14 +6,14 @@
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/config for the most recent version.//
// Revision $Id: generate.cpp 49281 2008-10-11 15:40:44Z johnmaddock $
// Revision $Id$
//
// Test file for macro BOOST_NO_STD_UNORDERED
// Test file for macro BOOST_HAS_INT128
// This file should not compile, if it does then
// BOOST_NO_STD_UNORDERED should not be defined.
// See file boost_no_std_unordered.ipp for details
// BOOST_HAS_INT128 should be defined.
// See file boost_has_int128.ipp for details
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
@@ -24,14 +24,14 @@
#include <boost/config.hpp>
#include "test.hpp"
#ifdef BOOST_NO_STD_UNORDERED
#include "boost_no_std_unordered.ipp"
#ifndef BOOST_HAS_INT128
#include "boost_has_int128.ipp"
#else
#error "this file should not compile"
#endif
int main( int, char *[] )
{
return boost_no_std_unordered::test();
return boost_has_int128::test();
}
@@ -1,4 +1,4 @@
// This file was automatically generated on Tue Dec 16 16:41:40 2008
// This file was automatically generated on Thu Oct 25 10:14:36 2012
// by libs/config/tools/generate.cpp
// Copyright John Maddock 2002-4.
// Use, modification and distribution are subject to the
@@ -6,14 +6,14 @@
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/config for the most recent version.//
// Revision $Id: generate.cpp 49281 2008-10-11 15:40:44Z johnmaddock $
// Revision $Id$
//
// Test file for macro BOOST_NO_STD_UNORDERED
// Test file for macro BOOST_HAS_INT128
// This file should compile, if it does not then
// BOOST_NO_STD_UNORDERED should be defined.
// See file boost_no_std_unordered.ipp for details
// BOOST_HAS_INT128 should not be defined.
// See file boost_has_int128.ipp for details
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
@@ -24,14 +24,14 @@
#include <boost/config.hpp>
#include "test.hpp"
#ifndef BOOST_NO_STD_UNORDERED
#include "boost_no_std_unordered.ipp"
#ifdef BOOST_HAS_INT128
#include "boost_has_int128.ipp"
#else
namespace boost_no_std_unordered = empty_boost;
namespace boost_has_int128 = empty_boost;
#endif
int main( int, char *[] )
{
return boost_no_std_unordered::test();
return boost_has_int128::test();
}