diff --git a/include/boost/thread/csbl/deque.hpp b/include/boost/thread/csbl/deque.hpp index 2b26a46e1..58da23505 100644 --- a/include/boost/thread/csbl/deque.hpp +++ b/include/boost/thread/csbl/deque.hpp @@ -9,37 +9,14 @@ #ifndef BOOST_CSBL_DEQUE_HPP #define BOOST_CSBL_DEQUE_HPP -#include -// MSVC has some trouble instantiating a non_copyable type -//C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\xmemory0(606) : error C2248: 'non_copyable::non_copyable' : cannot access private member declared in class 'non_copyable' -// ..\libs\thread\test\sync\mutual_exclusion\queue_views\single_thread_pass.cpp(24) : see declaration of 'non_copyable::non_copyable' -// ..\libs\thread\test\sync\mutual_exclusion\queue_views\single_thread_pass.cpp(23) : see declaration of 'non_copyable' -// C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\xmemory0(605) : while compiling class template member function 'void std::allocator<_Ty>::construct(_Ty *,const _Ty &)' -// with -// [ -// _Ty=non_copyable -// ] -#if defined BOOST_THREAD_USES_BOOST_DEQUE || defined BOOST_NO_CXX11_RVALUE_REFERENCES || (defined _MSC_VER && _MSC_FULL_VER < 180020827) -#ifndef BOOST_THREAD_USES_BOOST_DEQUE -#define BOOST_THREAD_USES_BOOST_DEQUE -#endif -#include -#else #include -#endif namespace boost { namespace csbl { -#if defined BOOST_THREAD_USES_BOOST_DEQUE - using ::boost::container::deque; - -#else using ::std::deque; - -#endif - } } + #endif // header diff --git a/include/boost/thread/csbl/functional.hpp b/include/boost/thread/csbl/functional.hpp index 7a7e928b7..0fc339a24 100644 --- a/include/boost/thread/csbl/functional.hpp +++ b/include/boost/thread/csbl/functional.hpp @@ -9,24 +9,12 @@ #ifndef BOOST_CSBL_FUNCTIONAL_HPP #define BOOST_CSBL_FUNCTIONAL_HPP -#include - #include -#if defined BOOST_THREAD_USES_BOOST_FUNCTIONAL || defined BOOST_NO_CXX11_HDR_FUNCTIONAL || defined BOOST_NO_CXX11_RVALUE_REFERENCES -#ifndef BOOST_THREAD_USES_BOOST_FUNCTIONAL -#define BOOST_THREAD_USES_BOOST_FUNCTIONAL -#endif -#include -#endif - namespace boost { namespace csbl { -#if defined BOOST_THREAD_USES_BOOST_FUNCTIONAL - using ::boost::function; -#else // D.8.1, base (deprecated): // 20.9.3, reference_wrapper: // 20.9.4, arithmetic operations: @@ -42,8 +30,7 @@ namespace boost // 20.9.11 polymorphic function wrappers: using ::std::function; // 20.9.12, hash function primary template: -#endif - } } + #endif // header diff --git a/include/boost/thread/csbl/list.hpp b/include/boost/thread/csbl/list.hpp index 52ff45d34..b6286ad02 100644 --- a/include/boost/thread/csbl/list.hpp +++ b/include/boost/thread/csbl/list.hpp @@ -9,27 +9,14 @@ #ifndef BOOST_CSBL_LIST_HPP #define BOOST_CSBL_LIST_HPP -#include - -#if defined BOOST_THREAD_USES_BOOST_LIST || defined BOOST_NO_CXX11_RVALUE_REFERENCES -#ifndef BOOST_THREAD_USES_BOOST_LIST -#define BOOST_THREAD_USES_BOOST_LIST -#endif -#include -#else #include -#endif namespace boost { namespace csbl { -#if defined BOOST_THREAD_USES_BOOST_LIST - using ::boost::container::list; -#else using ::std::list; -#endif - } } + #endif // header diff --git a/include/boost/thread/csbl/memory/allocator_arg.hpp b/include/boost/thread/csbl/memory/allocator_arg.hpp index 354cdaee8..d63bf8798 100644 --- a/include/boost/thread/csbl/memory/allocator_arg.hpp +++ b/include/boost/thread/csbl/memory/allocator_arg.hpp @@ -12,18 +12,7 @@ #include // 20.7.6, allocator argument tag -#if defined BOOST_NO_CXX11_ALLOCATOR -#include -namespace boost -{ - namespace csbl - { - using ::boost::container::allocator_arg_t; - using ::boost::container::allocator_arg; - } -} -#else namespace boost { namespace csbl @@ -32,10 +21,11 @@ namespace boost using ::std::allocator_arg; } } -#endif // BOOST_NO_CXX11_ALLOCATOR + namespace boost { using ::boost::csbl::allocator_arg_t; using ::boost::csbl::allocator_arg; } + #endif // header diff --git a/include/boost/thread/csbl/memory/allocator_traits.hpp b/include/boost/thread/csbl/memory/allocator_traits.hpp index 3737cd85d..4ea160dce 100644 --- a/include/boost/thread/csbl/memory/allocator_traits.hpp +++ b/include/boost/thread/csbl/memory/allocator_traits.hpp @@ -12,17 +12,7 @@ #include // 20.7.8, allocator traits -#if defined BOOST_NO_CXX11_ALLOCATOR -#include -namespace boost -{ - namespace csbl - { - using ::boost::container::allocator_traits; - } -} -#else namespace boost { namespace csbl @@ -30,6 +20,5 @@ namespace boost using ::std::allocator_traits; } } -#endif // BOOST_NO_CXX11_POINTER_TRAITS #endif // header diff --git a/include/boost/thread/csbl/memory/config.hpp b/include/boost/thread/csbl/memory/config.hpp index 7b0596ac4..7f6ec6030 100644 --- a/include/boost/thread/csbl/memory/config.hpp +++ b/include/boost/thread/csbl/memory/config.hpp @@ -9,8 +9,6 @@ #ifndef BOOST_CSBL_MEMORY_CONFIG_HPP #define BOOST_CSBL_MEMORY_CONFIG_HPP -#include - #include #endif // header diff --git a/include/boost/thread/csbl/memory/default_delete.hpp b/include/boost/thread/csbl/memory/default_delete.hpp index d20153b30..9e887bf43 100644 --- a/include/boost/thread/csbl/memory/default_delete.hpp +++ b/include/boost/thread/csbl/memory/default_delete.hpp @@ -14,17 +14,6 @@ // 20.8.1 class template unique_ptr: // default_delete -#if defined BOOST_NO_CXX11_SMART_PTR -#include - -namespace boost -{ - namespace csbl - { - using ::boost::movelib::default_delete; - } -} -#else namespace boost { namespace csbl @@ -32,10 +21,5 @@ namespace boost using ::std::default_delete; } } -#endif // defined BOOST_NO_CXX11_SMART_PTR -namespace boost -{ - using ::boost::csbl::default_delete; -} #endif // header diff --git a/include/boost/thread/csbl/memory/pointer_traits.hpp b/include/boost/thread/csbl/memory/pointer_traits.hpp index 320f8e9e7..7956967a5 100644 --- a/include/boost/thread/csbl/memory/pointer_traits.hpp +++ b/include/boost/thread/csbl/memory/pointer_traits.hpp @@ -12,17 +12,7 @@ #include // 20.7.3, pointer traits -#if defined BOOST_NO_CXX11_ALLOCATOR -#include -namespace boost -{ - namespace csbl - { - using ::boost::intrusive::pointer_traits; - } -} -#else namespace boost { namespace csbl @@ -30,6 +20,5 @@ namespace boost using ::std::pointer_traits; } } -#endif // BOOST_NO_CXX11_ALLOCATOR #endif // header diff --git a/include/boost/thread/csbl/memory/scoped_allocator.hpp b/include/boost/thread/csbl/memory/scoped_allocator.hpp index a92f3d851..5f4da9a49 100644 --- a/include/boost/thread/csbl/memory/scoped_allocator.hpp +++ b/include/boost/thread/csbl/memory/scoped_allocator.hpp @@ -12,17 +12,7 @@ #include // 20.7.7, uses_allocator -#if defined BOOST_NO_CXX11_ALLOCATOR -#include -namespace boost -{ - namespace csbl - { - using ::boost::container::uses_allocator; - } -} -#else namespace boost { namespace csbl @@ -30,6 +20,5 @@ namespace boost using ::std::uses_allocator; } } -#endif // BOOST_NO_CXX11_POINTER_TRAITS #endif // header diff --git a/include/boost/thread/csbl/memory/shared_ptr.hpp b/include/boost/thread/csbl/memory/shared_ptr.hpp index e9a938372..7e136cf33 100644 --- a/include/boost/thread/csbl/memory/shared_ptr.hpp +++ b/include/boost/thread/csbl/memory/shared_ptr.hpp @@ -11,24 +11,6 @@ #include -#if defined BOOST_NO_CXX11_SMART_PTR - -#include -#include - -namespace boost -{ - namespace csbl - { - using ::boost::shared_ptr; - using ::boost::make_shared; - } -} - -#else - -#include - namespace boost { namespace csbl @@ -38,5 +20,4 @@ namespace boost } } -#endif #endif // header diff --git a/include/boost/thread/csbl/memory/unique_ptr.hpp b/include/boost/thread/csbl/memory/unique_ptr.hpp index 17abf54e9..3c4ec0e4f 100644 --- a/include/boost/thread/csbl/memory/unique_ptr.hpp +++ b/include/boost/thread/csbl/memory/unique_ptr.hpp @@ -13,16 +13,14 @@ #include -#include -#include - namespace boost { namespace csbl { - using ::boost::movelib::unique_ptr; - using ::boost::movelib::make_unique; + using ::std::unique_ptr; + using ::std::make_unique; } } + #endif // header diff --git a/include/boost/thread/csbl/queue.hpp b/include/boost/thread/csbl/queue.hpp index 86e3a3245..ef4eba7d8 100644 --- a/include/boost/thread/csbl/queue.hpp +++ b/include/boost/thread/csbl/queue.hpp @@ -5,42 +5,18 @@ // // 2013/10 Vicente J. Botet Escriba // Creation. -#if 0 + #ifndef BOOST_CSBL_QUEUE_HPP #define BOOST_CSBL_QUEUE_HPP -#include -// MSVC has some trouble instantiating a non_copyable type -//C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\xmemory0(606) : error C2248: 'non_copyable::non_copyable' : cannot access private member declared in class 'non_copyable' -// ..\libs\thread\test\sync\mutual_exclusion\queue_views\single_thread_pass.cpp(24) : see declaration of 'non_copyable::non_copyable' -// ..\libs\thread\test\sync\mutual_exclusion\queue_views\single_thread_pass.cpp(23) : see declaration of 'non_copyable' -// C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\xmemory0(605) : while compiling class template member function 'void std::allocator<_Ty>::construct(_Ty *,const _Ty &)' -// with -// [ -// _Ty=non_copyable -// ] -#if defined BOOST_THREAD_USES_BOOST_QUEUE || defined BOOST_NO_CXX11_RVALUE_REFERENCES || (defined _MSC_VER && _MSC_FULL_VER < 180020827) -#ifndef BOOST_THREAD_USES_BOOST_QUEUE -#define BOOST_THREAD_USES_BOOST_QUEUE -#endif -#include -#else #include -#endif namespace boost { namespace csbl { -#if defined BOOST_THREAD_USES_BOOST_QUEUE - using ::boost::container::queue; - -#else using ::std::queue; - -#endif - } } + #endif // header -#endif diff --git a/include/boost/thread/csbl/tuple.hpp b/include/boost/thread/csbl/tuple.hpp index 860229ebe..45d6dbd45 100644 --- a/include/boost/thread/csbl/tuple.hpp +++ b/include/boost/thread/csbl/tuple.hpp @@ -9,28 +9,12 @@ #ifndef BOOST_CSBL_TUPLE_HPP #define BOOST_CSBL_TUPLE_HPP -#include - -#if defined BOOST_THREAD_USES_BOOST_TUPLE || defined BOOST_NO_CXX11_HDR_TUPLE || defined BOOST_NO_CXX11_RVALUE_REFERENCES -#include -#ifndef BOOST_THREAD_USES_BOOST_TUPLE -#define BOOST_THREAD_USES_BOOST_TUPLE -#endif - -#else #include -#endif namespace boost { namespace csbl { -#if defined BOOST_THREAD_USES_BOOST_TUPLE - using ::boost::tuple; - using ::boost::get; - using ::boost::make_tuple; - //using ::boost::tuple_size; -#else // 20.4.2, class template tuple: using ::std::tuple; using ::std::get; @@ -42,8 +26,7 @@ namespace boost // 20.4.2.7, relational operators: // 20.4.2.8, allocator-related traits // 20.4.2.9, specialized algorithms: -#endif - } } + #endif // header diff --git a/include/boost/thread/csbl/vector.hpp b/include/boost/thread/csbl/vector.hpp index c77a5b143..5f06f81d7 100644 --- a/include/boost/thread/csbl/vector.hpp +++ b/include/boost/thread/csbl/vector.hpp @@ -9,27 +9,14 @@ #ifndef BOOST_CSBL_VECTOR_HPP #define BOOST_CSBL_VECTOR_HPP -#include - -#if defined BOOST_THREAD_USES_BOOST_VECTOR || defined BOOST_NO_CXX11_RVALUE_REFERENCES || defined BOOST_MSVC -#ifndef BOOST_THREAD_USES_BOOST_VECTOR -#define BOOST_THREAD_USES_BOOST_VECTOR -#endif -#include -#else #include -#endif namespace boost { namespace csbl { -#if defined BOOST_THREAD_USES_BOOST_VECTOR - using ::boost::container::vector; -#else using ::std::vector; -#endif - } } + #endif // header