MessagePack for C++
adaptor_base.hpp
Go to the documentation of this file.
1 //
2 // MessagePack for C++ static resolution routine
3 //
4 // Copyright (C) 2015-2016 KONDO Takatoshi
5 //
6 // Distributed under the Boost Software License, Version 1.0.
7 // (See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
9 //
10 #ifndef MSGPACK_V2_ADAPTOR_BASE_HPP
11 #define MSGPACK_V2_ADAPTOR_BASE_HPP
12 
14 
15 namespace msgpack {
16 
20 
21 
22 namespace adaptor {
23 
24 // Adaptor functors
25 
26 template <typename T, typename Enabler>
27 struct convert : v1::adaptor::convert<T, Enabler> {
28 };
29 
30 template <typename T, typename Enabler>
31 struct pack : v1::adaptor::pack<T, Enabler> {
32 };
33 
34 template <typename T, typename Enabler>
35 struct object<
36  T,
37  Enabler,
38  typename msgpack::enable_if<
39  !msgpack::is_same<T, std::string>::value &&
40  !msgpack::is_array<T>::value
41  >::type>
42  : v1::adaptor::object<T, Enabler> {
43 };
44 
45 template <typename T, typename Enabler>
46 struct object_with_zone : v1::adaptor::object_with_zone<T, Enabler> {
47 };
48 
49 } // namespace adaptor
50 
52 } // MSGPACK_API_VERSION_NAMESPACE(v2)
54 
55 } // namespace msgpack
56 
57 
58 #endif // MSGPACK_V2_ADAPTOR_BASE_HPP
Definition: adaptor_base.hpp:15
void pack(msgpack::packer< Stream > &o, const T &v)
Definition: object.hpp:1180
void convert(T &v, msgpack::object const &o)
Definition: object.hpp:1173
Definition: adaptor_base.hpp:43
Definition: adaptor_base.hpp:38
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:66