update boost on linux
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#define BOOST_SPIRIT_TST_IPP
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
#include <memory> // for std::auto_ptr
|
||||
#include <boost/move/unique_ptr.hpp>
|
||||
#include <boost/spirit/home/classic/core/assert.hpp>
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@@ -62,7 +62,7 @@ BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
|
||||
tst_node*
|
||||
clone() const
|
||||
{
|
||||
std::auto_ptr<tst_node> copy(new tst_node(value));
|
||||
boost::movelib::unique_ptr<tst_node> copy(new tst_node(value));
|
||||
|
||||
if (left)
|
||||
copy->left = left->clone();
|
||||
@@ -75,7 +75,7 @@ BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
|
||||
}
|
||||
else
|
||||
{
|
||||
std::auto_ptr<T> mid_data(new T(*middle.data));
|
||||
boost::movelib::unique_ptr<T> mid_data(new T(*middle.data));
|
||||
copy->middle.data = mid_data.release();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user