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 #include "msgpack/cpp_version.hpp"
15 
16 #if defined(MSGPACK_USE_CPP03)
17 
18 namespace msgpack {
19 
23 
24 using v1::unique_ptr;
25 
26 using v1::move;
27 
28 using v1::enable_if;
29 
30 using v1::integral_constant;
31 
32 using v1::is_same;
33 
34 using v1::underlying_type;
35 
36 using v1::is_array;
37 
38 using v1::remove_const;
39 using v1::remove_volatile;
40 using v1::remove_cv;
41 
42 using v1::is_pointer;
43 
45 } // MSGPACK_API_VERSION_NAMESPACE(v2)
47 
48 } // namespace msgpack
49 
50 
51 #else // MSGPACK_USE_CPP03
52 
53 namespace msgpack {
57 
58 // unique_ptr
59 using v1::unique_ptr;
60 // using v1::make_unique; // since C++14
61 using v1::hash;
62 
63 // utility
64 using v1::move;
65 using v1::swap;
66 using v1::enable_if;
67 using v1::is_same;
68 using v1::underlying_type;
69 using v1::is_array;
70 
71 using v1::remove_const;
72 using v1::remove_volatile;
73 using v1::remove_cv;
74 
75 using v1::is_pointer;
76 
78 } // MSGPACK_API_VERSION_NAMESPACE(v2)
80 } // namespace msgpack
81 
82 
83 #endif // MSGPACK_USE_CPP03
84 
85 #endif // MSGPACK_V2_CPP_CONFIG_DECL_HPP
Definition: adaptor_base.hpp:15
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:66