Verified Commit 7bbc9ab1 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

python/pickle: fix compatibility issue

Compilation issues with recent version of Boost
parent d7806483
......@@ -20,7 +20,7 @@ namespace pinocchio
///
template<typename VecType>
struct PickleVector : boost::python::pickle_suite
{
{
static boost::python::tuple getinitargs(const VecType&)
{ return boost::python::make_tuple(); }
......@@ -35,7 +35,11 @@ namespace pinocchio
{
VecType & o = boost::python::extract<VecType&>(op)();
boost::python::stl_input_iterator<typename VecType::value_type> begin(tup[0]), end;
o.insert(o.begin(),begin,end);
while(begin != end)
{
o.push_back(*begin);
++begin;
}
}
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment