messagepack implementation for embedded systems (mbed / arduino)
Dependents: hello_message_pack
msgpack-c & msgpack-c++ https://github.com/msgpack/msgpack-c implementation for embedded systems (mbed / Arduino)
Revision 4:bd0c06dd6e92, committed 2016-02-22
- Comitter:
- hideakitai
- Date:
- Mon Feb 22 01:43:48 2016 +0000
- Parent:
- 3:a56553e46a9a
- Commit message:
- fix throw error
Changed in this revision
diff -r a56553e46a9a -r bd0c06dd6e92 include/msgpack/adaptor/detail/cpp03_define_array.hpp --- a/include/msgpack/adaptor/detail/cpp03_define_array.hpp Sun Feb 14 07:36:08 2016 +0000 +++ b/include/msgpack/adaptor/detail/cpp03_define_array.hpp Mon Feb 22 01:43:48 2016 +0000 @@ -126,7 +126,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -311,7 +314,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -365,7 +371,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -423,7 +432,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -485,7 +497,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -551,7 +566,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -621,7 +639,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -695,7 +716,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -773,7 +797,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -855,7 +882,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -941,7 +971,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -1031,7 +1064,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); + throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -1125,7 +1161,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -1223,7 +1262,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -1325,7 +1367,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -1431,7 +1476,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -1541,7 +1589,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -1655,7 +1706,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -1773,7 +1827,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -1895,7 +1952,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -2021,7 +2081,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -2151,7 +2214,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -2285,7 +2351,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -2423,7 +2492,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -2565,7 +2637,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -2711,7 +2786,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -2861,7 +2939,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -3015,7 +3096,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr; @@ -3173,7 +3257,10 @@ } void msgpack_unpack(msgpack::object const& o) { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } const size_t size = o.via.array.size; if(size > 0) { msgpack::object *ptr = o.via.array.ptr;
diff -r a56553e46a9a -r bd0c06dd6e92 include/msgpack/adaptor/detail/cpp03_define_map.hpp --- a/include/msgpack/adaptor/detail/cpp03_define_map.hpp Sun Feb 14 07:36:08 2016 +0000 +++ b/include/msgpack/adaptor/detail/cpp03_define_map.hpp Mon Feb 22 01:43:48 2016 +0000 @@ -115,7 +115,10 @@ } void msgpack_unpack(msgpack::object const& o) const { - if(o.type != msgpack::type::MAP) { throw msgpack::type_error(); } + if(o.type != msgpack::type::MAP) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } std::map<std::string, msgpack::object const*> kvmap; for (uint32_t i = 0; i < o.via.map.size; ++i) { kvmap.insert( @@ -167,7 +170,10 @@ } void msgpack_unpack(msgpack::object const& o) const { - if(o.type != msgpack::type::MAP) { throw msgpack::type_error(); } + if(o.type != msgpack::type::MAP) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } std::map<std::string, msgpack::object const*> kvmap; for (uint32_t i = 0; i < o.via.map.size; ++i) { kvmap.insert( @@ -233,7 +239,10 @@ } void msgpack_unpack(msgpack::object const& o) const { - if(o.type != msgpack::type::MAP) { throw msgpack::type_error(); } + if(o.type != msgpack::type::MAP) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } std::map<std::string, msgpack::object const*> kvmap; for (uint32_t i = 0; i < o.via.map.size; ++i) { kvmap.insert( @@ -313,7 +322,10 @@ } void msgpack_unpack(msgpack::object const& o) const { - if(o.type != msgpack::type::MAP) { throw msgpack::type_error(); } + if(o.type != msgpack::type::MAP) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } std::map<std::string, msgpack::object const*> kvmap; for (uint32_t i = 0; i < o.via.map.size; ++i) { kvmap.insert( @@ -407,7 +419,10 @@ } void msgpack_unpack(msgpack::object const& o) const { - if(o.type != msgpack::type::MAP) { throw msgpack::type_error(); } + if(o.type != msgpack::type::MAP) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } std::map<std::string, msgpack::object const*> kvmap; for (uint32_t i = 0; i < o.via.map.size; ++i) { kvmap.insert( @@ -515,7 +530,10 @@ } void msgpack_unpack(msgpack::object const& o) const { - if(o.type != msgpack::type::MAP) { throw msgpack::type_error(); } + if(o.type != msgpack::type::MAP) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } std::map<std::string, msgpack::object const*> kvmap; for (uint32_t i = 0; i < o.via.map.size; ++i) { kvmap.insert( @@ -637,7 +655,10 @@ } void msgpack_unpack(msgpack::object const& o) const { - if(o.type != msgpack::type::MAP) { throw msgpack::type_error(); } + if(o.type != msgpack::type::MAP) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } std::map<std::string, msgpack::object const*> kvmap; for (uint32_t i = 0; i < o.via.map.size; ++i) { kvmap.insert( @@ -773,7 +794,10 @@ } void msgpack_unpack(msgpack::object const& o) const { - if(o.type != msgpack::type::MAP) { throw msgpack::type_error(); } + if(o.type != msgpack::type::MAP) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } std::map<std::string, msgpack::object const*> kvmap; for (uint32_t i = 0; i < o.via.map.size; ++i) { kvmap.insert( @@ -923,7 +947,10 @@ } void msgpack_unpack(msgpack::object const& o) const { - if(o.type != msgpack::type::MAP) { throw msgpack::type_error(); } + if(o.type != msgpack::type::MAP) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } std::map<std::string, msgpack::object const*> kvmap; for (uint32_t i = 0; i < o.via.map.size; ++i) { kvmap.insert( @@ -1087,7 +1114,10 @@ } void msgpack_unpack(msgpack::object const& o) const { - if(o.type != msgpack::type::MAP) { throw msgpack::type_error(); } + if(o.type != msgpack::type::MAP) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } std::map<std::string, msgpack::object const*> kvmap; for (uint32_t i = 0; i < o.via.map.size; ++i) { kvmap.insert( @@ -1265,7 +1295,10 @@ } void msgpack_unpack(msgpack::object const& o) const { - if(o.type != msgpack::type::MAP) { throw msgpack::type_error(); } + if(o.type != msgpack::type::MAP) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } std::map<std::string, msgpack::object const*> kvmap; for (uint32_t i = 0; i < o.via.map.size; ++i) { kvmap.insert( @@ -1457,7 +1490,10 @@ } void msgpack_unpack(msgpack::object const& o) const { - if(o.type != msgpack::type::MAP) { throw msgpack::type_error(); } + if(o.type != msgpack::type::MAP) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } std::map<std::string, msgpack::object const*> kvmap; for (uint32_t i = 0; i < o.via.map.size; ++i) { kvmap.insert( @@ -1663,7 +1699,10 @@ } void msgpack_unpack(msgpack::object const& o) const { - if(o.type != msgpack::type::MAP) { throw msgpack::type_error(); } + if(o.type != msgpack::type::MAP) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } std::map<std::string, msgpack::object const*> kvmap; for (uint32_t i = 0; i < o.via.map.size; ++i) { kvmap.insert( @@ -1883,7 +1922,10 @@ } void msgpack_unpack(msgpack::object const& o) const { - if(o.type != msgpack::type::MAP) { throw msgpack::type_error(); } + if(o.type != msgpack::type::MAP) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } std::map<std::string, msgpack::object const*> kvmap; for (uint32_t i = 0; i < o.via.map.size; ++i) { kvmap.insert( @@ -2117,7 +2159,10 @@ } void msgpack_unpack(msgpack::object const& o) const { - if(o.type != msgpack::type::MAP) { throw msgpack::type_error(); } + if(o.type != msgpack::type::MAP) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } std::map<std::string, msgpack::object const*> kvmap; for (uint32_t i = 0; i < o.via.map.size; ++i) { kvmap.insert( @@ -2365,7 +2410,10 @@ } void msgpack_unpack(msgpack::object const& o) const { - if(o.type != msgpack::type::MAP) { throw msgpack::type_error(); } + if(o.type != msgpack::type::MAP) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } std::map<std::string, msgpack::object const*> kvmap; for (uint32_t i = 0; i < o.via.map.size; ++i) { kvmap.insert(
diff -r a56553e46a9a -r bd0c06dd6e92 include/msgpack/adaptor/detail/cpp03_msgpack_tuple.hpp --- a/include/msgpack/adaptor/detail/cpp03_msgpack_tuple.hpp Sun Feb 14 07:36:08 2016 +0000 +++ b/include/msgpack/adaptor/detail/cpp03_msgpack_tuple.hpp Mon Feb 22 01:43:48 2016 +0000 @@ -10596,6 +10596,7 @@ msgpack::object const& o, type::tuple<>&) const { if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); // throw msgpack::type_error(); } return o; @@ -10609,8 +10610,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 1) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 1) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -10623,8 +10630,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 2) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 2) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -10639,8 +10652,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 3) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 3) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -10657,8 +10676,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 4) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 4) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -10677,8 +10702,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 5) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 5) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -10699,8 +10730,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 6) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 6) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -10723,8 +10760,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 7) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 7) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -10749,8 +10792,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 8) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 8) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -10777,8 +10826,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 9) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 9) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -10807,8 +10862,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 10) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 10) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -10839,8 +10900,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 11) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 11) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -10873,8 +10940,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 12) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 12) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -10909,8 +10982,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 13) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 13) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -10947,8 +11026,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 14) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 14) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -10987,8 +11072,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 15) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 15) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -11029,8 +11120,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 16) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 16) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -11073,8 +11170,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 17) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 17) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -11119,8 +11222,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 18) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 18) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -11167,8 +11276,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 19) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 19) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -11217,8 +11332,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 20) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 20) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -11269,8 +11390,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 21) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 21) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -11323,8 +11450,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 22) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 22) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -11379,8 +11512,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 23) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 23) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -11437,8 +11576,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 24) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 24) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -11497,8 +11642,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 25) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 25) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -11559,8 +11710,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 26) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 26) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -11623,8 +11780,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 27) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 27) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -11689,8 +11852,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 28) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 28) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -11757,8 +11926,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 29) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 29) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -11827,8 +12002,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28, A29>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 30) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 30) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -11899,8 +12080,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28, A29, A30>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 31) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 31) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>()); @@ -11973,8 +12160,14 @@ msgpack::object const& operator()( msgpack::object const& o, type::tuple<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28, A29, A30, A31>& v) const { - if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); } - if(o.via.array.size < 32) { throw msgpack::type_error(); } + if(o.type != msgpack::type::ARRAY) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } + if(o.via.array.size < 32) { + printf("throw msgpack::type_error()"); +// throw msgpack::type_error(); + } // In order to avoid clang++'s invalid warning, msgpack::object:: has been added. o.via.array.ptr[0].msgpack::object::convert<typename type::tuple_type<A0>::type>(v.template get<0>());