MessagePack for C++
Loading...
Searching...
No Matches
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) 2018 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_V3_CPP_CONFIG_DECL_HPP
11#define MSGPACK_V3_CPP_CONFIG_DECL_HPP
12
14
15#if defined(MSGPACK_USE_CPP03)
16
17namespace msgpack {
18
22
23using v2::unique_ptr;
24
25using v2::move;
26
27using v2::enable_if;
28
29using v2::integral_constant;
30
31using v2::is_same;
32
33using v2::underlying_type;
34
35using v2::is_array;
36
37using v2::remove_const;
38using v2::remove_volatile;
39using v2::remove_cv;
40
41using v2::is_pointer;
42
44} // MSGPACK_API_VERSION_NAMESPACE(v3)
46
47} // namespace msgpack
48
49
50#else // MSGPACK_USE_CPP03
51
52namespace msgpack {
56
57// unique_ptr
58using v2::unique_ptr;
59// using v2::make_unique; // since C++14
60using v2::hash;
61
62// utility
63using v2::move;
64using v2::swap;
65using v2::enable_if;
66using v2::is_same;
67using v2::underlying_type;
68using v2::is_array;
69
70using v2::remove_const;
71using v2::remove_volatile;
72using v2::remove_cv;
73
74using v2::is_pointer;
75
77} // MSGPACK_API_VERSION_NAMESPACE(v3)
79} // namespace msgpack
80
81
82#endif // MSGPACK_USE_CPP03
83
84#endif // MSGPACK_V3_CPP_CONFIG_DECL_HPP
Definition adaptor_base.hpp:15
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition versioning.hpp:58