10 #ifndef MSGPACK_V1_CPP_CONFIG_HPP
11 #define MSGPACK_V1_CPP_CONFIG_HPP
17 #if defined(MSGPACK_USE_CPP03)
26 struct 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) {}
40 T
const& move(T
const& t)
45 template <
bool P,
typename T>
51 struct enable_if<false, T> {
54 template<
typename T, T val>
55 struct integral_constant {
56 static T
const value = val;
58 typedef integral_constant<T, val> type;
61 typedef integral_constant<bool, true> true_type;
62 typedef integral_constant<bool, false> false_type;
64 template<
class T,
class U>
65 struct is_same : false_type {};
68 struct is_same<T, T> : true_type {};
71 struct underlying_type {
76 struct is_array : false_type {};
79 struct is_array<T[]> : true_type {};
81 template<
class T, std::
size_t N>
82 struct is_array<T[N]> : true_type {};
90 struct remove_const<const T> {
95 struct remove_volatile {
99 struct remove_volatile<volatile T> {
105 typedef typename msgpack::remove_volatile<
106 typename msgpack::remove_const<T>::type
113 struct is_pointer_helper : false_type {};
116 struct is_pointer_helper<T*> : true_type {};
120 template<
class T>
struct is_pointer : detail::is_pointer_helper<typename remove_cv<T>::type> {};
131 #if MSGPACK_CPP_VERSION >= 201402L
132 #if defined(_MSC_VER)
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