mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-27 02:53:11 +01:00
Restored the test cases using pointer based interfaces.
It assures that we can use the same interfaces as the original version(0.5.6). To support both C++03 and C++11, I introduced msgpack::unique_ptr and msgpack::move() in test codes.
This commit is contained in:
@@ -30,10 +30,10 @@ void check_convert() {
|
||||
msgpack::pack(sbuf, v1);
|
||||
|
||||
msgpack::unpacked msg;
|
||||
msgpack::unpack(msg, sbuf.data(), sbuf.size());
|
||||
msgpack::unpack(&msg, sbuf.data(), sbuf.size());
|
||||
|
||||
T v2;
|
||||
msg.get().convert(v2);
|
||||
msg.get().convert(&v2);
|
||||
|
||||
EXPECT_EQ(v1.get(), v2.get());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user