Replaced deprecated functions in example/stream.cc

This commit is contained in:
Nobuyuki Kubota 2014-02-07 17:26:11 +09:00
parent 9d82356ea9
commit 28370b36aa

View File

@ -34,13 +34,10 @@ public:
m_pac.buffer_consumed(count);
while(m_pac.execute()) {
msgpack::object msg = m_pac.data();
auto_zone life( m_pac.release_zone() );
m_pac.reset();
msgpack::unpacked result;
while (m_pac.next(&result)) {
msgpack::object msg = result.get();
auto_zone& life = result.zone();
process_message(msg, life);
}