summaryrefslogtreecommitdiff
path: root/cpp/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test.cpp')
-rw-r--r--cpp/test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/test.cpp b/cpp/test.cpp
index b63f9a1..68050a3 100644
--- a/cpp/test.cpp
+++ b/cpp/test.cpp
@@ -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;