diff options
Diffstat (limited to 'third_party/msgpack/include/msgpack/v3/cpp_config_decl.hpp')
-rw-r--r-- | third_party/msgpack/include/msgpack/v3/cpp_config_decl.hpp | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/third_party/msgpack/include/msgpack/v3/cpp_config_decl.hpp b/third_party/msgpack/include/msgpack/v3/cpp_config_decl.hpp new file mode 100644 index 0000000000..2a33dc54e3 --- /dev/null +++ b/third_party/msgpack/include/msgpack/v3/cpp_config_decl.hpp @@ -0,0 +1,84 @@ +// +// MessagePack for C++ C++03/C++11 Adaptation +// +// Copyright (C) 2018 KONDO Takatoshi +// +// 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) +// +#ifndef MSGPACK_V3_CPP_CONFIG_DECL_HPP +#define MSGPACK_V3_CPP_CONFIG_DECL_HPP + +#include "msgpack/v2/cpp_config_decl.hpp" + +#if defined(MSGPACK_USE_CPP03) + +namespace msgpack { + +/// @cond +MSGPACK_API_VERSION_NAMESPACE(v3) { +/// @endcond + +using v2::unique_ptr; + +using v2::move; + +using v2::enable_if; + +using v2::integral_constant; + +using v2::is_same; + +using v2::underlying_type; + +using v2::is_array; + +using v2::remove_const; +using v2::remove_volatile; +using v2::remove_cv; + +using v2::is_pointer; + +/// @cond +} // MSGPACK_API_VERSION_NAMESPACE(v3) +/// @endcond + +} // namespace msgpack + + +#else // MSGPACK_USE_CPP03 + +namespace msgpack { +/// @cond +MSGPACK_API_VERSION_NAMESPACE(v3) { +/// @endcond + +// unique_ptr +using v2::unique_ptr; +// using v2::make_unique; // since C++14 +using v2::hash; + +// utility +using v2::move; +using v2::swap; +using v2::enable_if; +using v2::is_same; +using v2::underlying_type; +using v2::is_array; + +using v2::remove_const; +using v2::remove_volatile; +using v2::remove_cv; + +using v2::is_pointer; + +/// @cond +} // MSGPACK_API_VERSION_NAMESPACE(v3) +/// @endcond +} // namespace msgpack + + +#endif // MSGPACK_USE_CPP03 + +#endif // MSGPACK_V3_CPP_CONFIG_DECL_HPP |