Added a visitor version of unpack API,

The current unpacking APIs are constructed on the visitor mechanism.
(Fixed #418)

Updated test condition.
This commit is contained in:
Takatoshi Kondo
2016-04-14 00:20:00 +09:00
parent 07b5000824
commit d5b515899c
8 changed files with 1698 additions and 22 deletions

View File

@@ -48,6 +48,9 @@ TEST(streaming, basic)
}
}
// obsolete
#if MSGPACK_DEFAULT_API_VERSION == 1
TEST(streaming, basic_pointer)
{
msgpack::sbuffer buffer;
@@ -94,6 +97,8 @@ TEST(streaming, basic_pointer)
}
}
#endif // MSGPACK_DEFAULT_API_VERSION == 1
#if !defined(MSGPACK_USE_CPP03)
TEST(streaming, move)
@@ -207,6 +212,8 @@ TEST(streaming, event)
handler.on_read();
}
// obsolete
#if MSGPACK_DEFAULT_API_VERSION == 1
// backward compatibility
TEST(streaming, basic_compat)
@@ -314,3 +321,5 @@ TEST(streaming, event_compat)
handler.expect = 3;
handler.on_read();
}
#endif // !defined(MSGPACK_USE_CPP03)