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