mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-13 22:50:19 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user