MessagePack for C++
pack_decl.hpp
Go to the documentation of this file.
1 //
2 // MessagePack for C++ serializing routine
3 //
4 // Copyright (C) 2008-2016 FURUHASHI Sadayuki and 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_PACK_DECL_HPP
11 #define MSGPACK_V2_PACK_DECL_HPP
12 
13 #include "msgpack/v1/pack_decl.hpp"
14 
15 namespace msgpack {
16 
20 
21 using v1::packer;
22 
23 using v1::pack;
24 
25 
26 #if MSGPACK_ENDIAN_LITTLE_BYTE
27 
28 using v1::take8_8;
29 
30 using v1::take8_16;
31 
32 using v1::take8_32;
33 
34 using v1::take8_64;
35 
36 #elif MSGPACK_ENDIAN_BIG_BYTE
37 
38 using v1::take8_8;
39 
40 using v1::take8_16;
41 
42 using v1::take8_32;
43 
44 using v1::take8_64;
45 
46 #else
47 #error msgpack-c supports only big endian and little endian
48 #endif
49 
51 } // MSGPACK_API_VERSION_NAMESPACE(v2)
53 
54 } // namespace msgpack
55 
56 #endif // MSGPACK_V2_PACK_DECL_HPP
Definition: adaptor_base.hpp:15
void pack(msgpack::packer< Stream > &o, const T &v)
Definition: object.hpp:1180
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:66