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 
13 #include "msgpack/v2/adaptor/adaptor_base_decl.hpp"
14 
15 namespace msgpack {
16 
17 /// @cond
MSGPACK_API_VERSION_NAMESPACE(v2)18 MSGPACK_API_VERSION_NAMESPACE(v2) {
19 /// @endcond
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 
51 /// @cond
52 } // MSGPACK_API_VERSION_NAMESPACE(v2)
53 /// @endcond
54 
55 } // namespace msgpack
56 
57 
58 #endif // MSGPACK_V2_ADAPTOR_BASE_HPP
59