Replaced obsolete interface with recommended one on the example code.

This commit is contained in:
Takatoshi Kondo
2014-08-08 12:13:34 +09:00
parent 0a99b9f933
commit dee68403df
+1 -1
View File
@@ -128,7 +128,7 @@ Install from package for this branch (poc/0.6) is not supported yet.
// Deserialize the serialized data.
msgpack::unpacked msg; // includes memory pool and deserialized object
msgpack::unpack(&msg, sbuf.data(), sbuf.size());
msgpack::unpack(msg, sbuf.data(), sbuf.size());
msgpack::object obj = msg.get();
// Print the deserialized object to stdout.