mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-13 14:45:38 +02:00
lang/c/msgpack: fix types
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@63 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
//#include <msgpack/pack.hpp>
|
||||
#include <msgpack.hpp>
|
||||
#include <sstream>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include <memory>
|
||||
|
||||
class checker {
|
||||
public:
|
||||
@@ -176,7 +176,7 @@ int main(void)
|
||||
|
||||
// 2. read data to buffer() up to buffer_capacity() bytes
|
||||
size_t sz = stream.readsome(
|
||||
(char*)upk.buffer(),
|
||||
upk.buffer(),
|
||||
upk.buffer_capacity());
|
||||
|
||||
total_bytes -= sz;
|
||||
@@ -195,7 +195,7 @@ int main(void)
|
||||
msgpack::object o = upk.data();
|
||||
|
||||
// 5.2. the parsed object is valid until the zone is deleted
|
||||
boost::scoped_ptr<msgpack::zone> pz(upk.release_zone());
|
||||
std::auto_ptr<msgpack::zone> pz(upk.release_zone());
|
||||
|
||||
std::cout << o << std::endl;
|
||||
++num_msg;
|
||||
|
Reference in New Issue
Block a user