cpp: explicit object(const T& v)

This commit is contained in:
frsyuki 2010-04-25 02:30:53 +09:00
parent 05e28752f1
commit 7d945d3c8e
2 changed files with 35 additions and 5 deletions

View file

@ -28,7 +28,8 @@
{ \
msgpack::type::make_define(__VA_ARGS__).msgpack_unpack(o); \
}\
void msgpack_object(msgpack::object* o, msgpack::zone* z) const \
template <typename MSGPACK_OBJECT> \
void msgpack_object(MSGPACK_OBJECT* o, msgpack::zone* z) const \
{ \
msgpack::type::make_define(__VA_ARGS__).msgpack_object(o, z); \
}