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

@@ -44,7 +44,7 @@ public:
m_pac.buffer_consumed(count);
msgpack::object_handle oh;
while (m_pac.next(&oh)) {
while (m_pac.next(oh)) {
msgpack::object msg = oh.get();
unique_zone& life = oh.zone();
process_message(msg, life);