10#ifndef MSGPACK_V1_CPP_CONFIG_HPP
11#define MSGPACK_V1_CPP_CONFIG_HPP
17#if defined(MSGPACK_USE_CPP03)
26struct unique_ptr : std::auto_ptr<T> {
27 explicit unique_ptr(T* p = 0) throw() : std::auto_ptr<T>(p) {}
28 unique_ptr(unique_ptr& a)
throw() : std::auto_ptr<T>(a) {}
30 unique_ptr (unique_ptr<Y>& a)
throw() : std::auto_ptr<T>(a) {}
40T
const& move(T
const& t)
45template <
bool P,
typename T>
51struct enable_if<false, T> {
54template<
typename T, T val>
55struct integral_constant {
56 static T
const value = val;
58 typedef integral_constant<T, val> type;
61typedef integral_constant<bool, true> true_type;
62typedef integral_constant<bool, false> false_type;
64template<
class T,
class U>
65struct is_same : false_type {};
68struct is_same<T, T> : true_type {};
71struct underlying_type {
76struct is_array : false_type {};
79struct is_array<T[]> : true_type {};
81template<
class T, std::
size_t N>
82struct is_array<T[N]> : true_type {};
90struct remove_const<const T> {
95struct remove_volatile {
99struct remove_volatile<volatile T> {
105 typedef typename msgpack::remove_volatile<
106 typename msgpack::remove_const<T>::type
113struct is_pointer_helper : false_type {};
116struct is_pointer_helper<T*> : true_type {};
120template<
class T>
struct is_pointer : detail::is_pointer_helper<typename remove_cv<T>::type> {};
131#if MSGPACK_CPP_VERSION >= 201402L
133#define MSGPACK_DEPRECATED(msg) __declspec(deprecated(msg))
135#define MSGPACK_DEPRECATED(msg) [[deprecated(msg)]]
138#define MSGPACK_DEPRECATED(msg)
Definition adaptor_base.hpp:15
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition versioning.hpp:66