Blame view

3rdparty/boost_1_81_0/boost/thread/csbl/deque.hpp 1.56 KB
0b6a182c   Hu Chunming   添加无鉴权注册和注销
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
  // Copyright (C) 2013 Vicente J. Botet Escriba
  //
  //  Distributed under 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)
  //
  // 2013/10 Vicente J. Botet Escriba
  //   Creation.
  
  #ifndef BOOST_CSBL_DEQUE_HPP
  #define BOOST_CSBL_DEQUE_HPP
  
  #include <boost/config.hpp>
  // 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 <boost/container/deque.hpp>
  #else
  #include <deque>
  #endif
  
  namespace boost
  {
    namespace csbl
    {
  #if defined BOOST_THREAD_USES_BOOST_DEQUE
      using ::boost::container::deque;
  
  #else
      using ::std::deque;
  
  #endif
  
    }
  }
  #endif // header