Realistic 3D camera system
3D camera system components
type_traits.hpp
Go to the documentation of this file.
1 //
2 // detail/type_traits.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 //
10 
11 #ifndef ASIO_DETAIL_TYPE_TRAITS_HPP
12 #define ASIO_DETAIL_TYPE_TRAITS_HPP
13 
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 
18 #include "asio/detail/config.hpp"
19 
20 #if defined(ASIO_HAS_STD_TYPE_TRAITS)
21 # include <type_traits>
22 #else // defined(ASIO_HAS_TYPE_TRAITS)
23 # include <boost/type_traits/add_const.hpp>
24 # include <boost/type_traits/is_const.hpp>
25 # include <boost/type_traits/is_convertible.hpp>
26 # include <boost/type_traits/is_function.hpp>
27 # include <boost/type_traits/is_same.hpp>
28 # include <boost/type_traits/remove_pointer.hpp>
29 # include <boost/type_traits/remove_reference.hpp>
30 # include <boost/utility/enable_if.hpp>
31 #endif // defined(ASIO_HAS_TYPE_TRAITS)
32 
33 namespace asio {
34 
35 #if defined(ASIO_HAS_STD_TYPE_TRAITS)
36 using std::add_const;
37 using std::enable_if;
38 using std::is_const;
39 using std::is_convertible;
40 using std::is_function;
41 using std::is_same;
42 using std::remove_pointer;
43 using std::remove_reference;
44 #else // defined(ASIO_HAS_STD_TYPE_TRAITS)
45 using boost::add_const;
46 template <bool Condition, typename Type = void>
47 struct enable_if : boost::enable_if_c<Condition, Type> {};
48 using boost::is_const;
49 using boost::is_convertible;
50 using boost::is_function;
51 using boost::is_same;
52 using boost::remove_pointer;
53 using boost::remove_reference;
54 #endif // defined(ASIO_HAS_STD_TYPE_TRAITS)
55 
56 } // namespace asio
57 
58 #endif // ASIO_DETAIL_TYPE_TRAITS_HPP