MessagePack for C++
cpp_config_decl.hpp
Go to the documentation of this file.
1 //
2 // MessagePack for C++ C++03/C++11 Adaptation
3 //
4 // Copyright (C) 2016 KONDO Takatoshi
5 //
6 // Distributed under the Boost Software License, Version 1.0.
7 // (See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
9 //
10 #ifndef MSGPACK_V2_CPP_CONFIG_DECL_HPP
11 #define MSGPACK_V2_CPP_CONFIG_DECL_HPP
12 
14 
15 #if defined(MSGPACK_USE_CPP03)
16 
17 namespace msgpack {
18 
22 
23 using v1::unique_ptr;
24 
25 using v1::move;
26 
27 using v1::enable_if;
28 
29 using v1::integral_constant;
30 
31 using v1::is_same;
32 
33 using v1::underlying_type;
34 
36 } // MSGPACK_API_VERSION_NAMESPACE(v2)
38 
39 } // namespace msgpack
40 
41 
42 #else // MSGPACK_USE_CPP03
43 
44 namespace msgpack {
48 
49 // unique_ptr
50 using v1::unique_ptr;
51 // using v1::make_unique; // since C++14
52 using v1::hash;
53 
54 // utility
55 using v1::move;
56 using v1::swap;
57 using v1::enable_if;
58 using v1::is_same;
59 using v1::underlying_type;
60 
62 } // MSGPACK_API_VERSION_NAMESPACE(v2)
64 } // namespace msgpack
65 
66 
67 #endif // MSGPACK_USE_CPP03
68 
69 #endif // MSGPACK_V2_CPP_CONFIG_DECL_HPP
Definition: adaptor_base.hpp:15
T const & move(T const &t)
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:58