1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
|
//
// MessagePack for C++ C++03/C++11 Adaptation
//
// Copyright (C) 2016 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_V1_CPP_CONFIG_DECL_HPP
#define MSGPACK_V1_CPP_CONFIG_DECL_HPP
#include "msgpack/cpp_version.hpp"
#include "msgpack/versioning.hpp"
#if defined(MSGPACK_USE_CPP03)
#if defined(nullptr)
# if defined (__cplusplus_cli)
# define MSGPACK_NULLPTR __nullptr
# else // defined (__cplusplus_cli)
# define MSGPACK_NULLPTR nullptr
# endif // defined (__cplusplus_cli)
#else // defined(nullptr)
# define MSGPACK_NULLPTR (0)
#endif // defined(nullptr)
#include <memory>
namespace msgpack {
/// @cond
MSGPACK_API_VERSION_NAMESPACE(v1) {
/// @endcond
template <typename T>
struct unique_ptr;
template <typename T>
T& move(T& t);
template <typename T>
T const& move(T const& t);
template <bool P, typename T = void>
struct enable_if;
template<typename T, T val>
struct integral_constant;
typedef integral_constant<bool, true> true_type;
typedef integral_constant<bool, false> false_type;
template<class T, class U>
struct is_same;
template<typename T>
struct underlying_type;
template<class T>
struct is_array;
template<class T>
struct remove_const;
template<class T>
struct remove_volatile;
template<class T>
struct remove_cv;
template<class T>
struct is_pointer;
/// @cond
} // MSGPACK_API_VERSION_NAMESPACE(v1)
/// @endcond
} // namespace msgpack
#else // MSGPACK_USE_CPP03
#if defined (__cplusplus_cli)
# define MSGPACK_NULLPTR __nullptr
#else // defined (__cplusplus_cli)
# define MSGPACK_NULLPTR nullptr
#endif // defined (__cplusplus_cli)
#include <memory>
#include <tuple>
namespace msgpack {
/// @cond
MSGPACK_API_VERSION_NAMESPACE(v1) {
/// @endcond
// unique_ptr
using std::unique_ptr;
// using std::make_unique; // since C++14
using std::hash;
// utility
using std::move;
using std::swap;
using std::enable_if;
using std::is_same;
using std::underlying_type;
using std::is_array;
using std::remove_const;
using std::remove_volatile;
using std::remove_cv;
using std::is_pointer;
/// @cond
} // MSGPACK_API_VERSION_NAMESPACE(v1)
/// @endcond
} // namespace msgpack
#endif // MSGPACK_USE_CPP03
#if defined(__has_include)
#define MSGPACK_HAS_INCLUDE __has_include
#else // defined(__has_include)
#define MSGPACK_HAS_INCLUDE(header) 0
#endif // defined(__has_include)
#endif // MSGPACK_V1_CPP_CONFIG_DECL_HPP
|