diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2019-12-05 15:12:59 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2019-12-05 15:12:59 +0900 |
commit | b8cf34c691623e4ec329053cbbf68522a855882d (patch) | |
tree | 34da08632a99677f6b79ecb65e5b655a5b69a67f /boost/mpi/python/serialize.hpp | |
parent | 3fdc3e5ee96dca5b11d1694975a65200787eab86 (diff) | |
download | boost-b8cf34c691623e4ec329053cbbf68522a855882d.tar.gz boost-b8cf34c691623e4ec329053cbbf68522a855882d.tar.bz2 boost-b8cf34c691623e4ec329053cbbf68522a855882d.zip |
Imported Upstream version 1.67.0upstream/1.67.0
Diffstat (limited to 'boost/mpi/python/serialize.hpp')
-rw-r--r-- | boost/mpi/python/serialize.hpp | 4 |
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); |