type conversion operator msgpack_object <-> msgpack::object

This commit is contained in:
frsyuki (none)
2009-02-22 15:36:02 +09:00
parent cbf7afc1cc
commit 9642368835
3 changed files with 26 additions and 3 deletions

View File

@@ -191,8 +191,7 @@ inline bool unpacker::execute()
inline object unpacker::data()
{
msgpack_object obj = msgpack_unpacker_data(this);
return *reinterpret_cast<object*>(&obj);
return msgpack_unpacker_data(this);
}
inline zone* unpacker::release_zone()