summaryrefslogtreecommitdiff
path: root/boost/mpi/python/serialize.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/mpi/python/serialize.hpp')
-rw-r--r--boost/mpi/python/serialize.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/mpi/python/serialize.hpp b/boost/mpi/python/serialize.hpp
index 8933b3405f..feb703d836 100644
--- a/boost/mpi/python/serialize.hpp
+++ b/boost/mpi/python/serialize.hpp
@@ -26,7 +26,6 @@
#include <boost/python/str.hpp>
#include <boost/python/extract.hpp>
-#include <memory>
#include <map>
#include <boost/function/function3.hpp>
@@ -37,6 +36,7 @@
#include <boost/serialization/split_free.hpp>
#include <boost/serialization/array.hpp>
#include <boost/serialization/array_wrapper.hpp>
+#include <boost/smart_ptr/scoped_array.hpp>
#include <boost/assert.hpp>
@@ -442,7 +442,7 @@ load_impl(Archiver& ar, boost::python::object& obj,
int len;
ar >> len;
- std::auto_ptr<char> string(new char[len]);
+ boost::scoped_array<char> string(new char[len]);
ar >> boost::serialization::make_array(string.get(), len);
boost::python::str py_string(string.get(), len);
obj = boost::python::pickle::loads(py_string);