Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/thread/csbl/deque.hpp @ 102:f46d142149f5
Whoops, finish that update
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:13:41 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
101:c530137014c0 | 102:f46d142149f5 |
---|---|
1 // Copyright (C) 2013 Vicente J. Botet Escriba | |
2 // | |
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying | |
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
5 // | |
6 // 2013/10 Vicente J. Botet Escriba | |
7 // Creation. | |
8 | |
9 #ifndef BOOST_CSBL_DEQUE_HPP | |
10 #define BOOST_CSBL_DEQUE_HPP | |
11 | |
12 #include <boost/config.hpp> | |
13 // MSVC has some trouble instantiating a non_copyable type | |
14 //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' | |
15 // ..\libs\thread\test\sync\mutual_exclusion\queue_views\single_thread_pass.cpp(24) : see declaration of 'non_copyable::non_copyable' | |
16 // ..\libs\thread\test\sync\mutual_exclusion\queue_views\single_thread_pass.cpp(23) : see declaration of 'non_copyable' | |
17 // 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 &)' | |
18 // with | |
19 // [ | |
20 // _Ty=non_copyable | |
21 // ] | |
22 #if defined BOOST_THREAD_USES_BOOST_DEQUE || defined BOOST_NO_CXX11_RVALUE_REFERENCES || (defined _MSC_VER && _MSC_FULL_VER < 180020827) | |
23 #ifndef BOOST_THREAD_USES_BOOST_DEQUE | |
24 #define BOOST_THREAD_USES_BOOST_DEQUE | |
25 #endif | |
26 #include <boost/container/deque.hpp> | |
27 #else | |
28 #include <deque> | |
29 #endif | |
30 | |
31 namespace boost | |
32 { | |
33 namespace csbl | |
34 { | |
35 #if defined BOOST_THREAD_USES_BOOST_DEQUE | |
36 using ::boost::container::deque; | |
37 | |
38 #else | |
39 using ::std::deque; | |
40 | |
41 #endif | |
42 | |
43 } | |
44 } | |
45 #endif // header |