mirror of
https://github.com/msgpack/msgpack-c
synced 2026-06-08 16:11:40 +00:00
347658cdc1
See https://github.com/msgpack/msgpack-c/pull/639#issuecomment-353786498 So I updated the version to 3.0.0. In the version 2.x, it keeps the original behavior.
85 lines
1.4 KiB
C++
85 lines
1.4 KiB
C++
//
|
|
// 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
|