Commit be8fbbb8 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

Remove usage of polymorphic archive.

parent 8e9157a1
......@@ -19,8 +19,8 @@
#include <boost/test/unit_test.hpp>
#include <sstream>
#include <boost/archive/polymorphic_xml_iarchive.hpp>
#include <boost/archive/polymorphic_xml_oarchive.hpp>
#include <boost/archive/xml_iarchive.hpp>
#include <boost/archive/xml_oarchive.hpp>
#include <pinocchio/fwd.hpp>
#include <hpp/pinocchio/fwd.hh>
......@@ -147,9 +147,9 @@ BOOST_AUTO_TEST_CASE(load_neutral_configuration)
}
struct iarchive :
boost::archive::polymorphic_xml_iarchive, hpp::serialization::archive_device_wrapper
boost::archive::xml_iarchive, hpp::serialization::archive_device_wrapper
{
iarchive(std::istream& is) : boost::archive::polymorphic_xml_iarchive (is) {}
iarchive(std::istream& is) : boost::archive::xml_iarchive (is) {}
};
BOOST_AUTO_TEST_CASE(serialization)
......@@ -159,7 +159,7 @@ BOOST_AUTO_TEST_CASE(serialization)
std::stringstream ss;
{
boost::archive::polymorphic_xml_oarchive oa(ss);
boost::archive::xml_oarchive oa(ss);
oa << boost::serialization::make_nvp("device", device);
oa << boost::serialization::make_nvp("joint", joint);
}
......@@ -169,7 +169,7 @@ BOOST_AUTO_TEST_CASE(serialization)
{
iarchive ia(ss);
ia.device = device;
//boost::archive::polymorphic_xml_iarchive ia(ss);
//boost::archive::xml_iarchive ia(ss);
ia >> boost::serialization::make_nvp("device", device2);
ia >> boost::serialization::make_nvp("joint", joint2);
}
......
......@@ -22,8 +22,8 @@
#endif
#include <sstream>
#include <boost/archive/polymorphic_xml_iarchive.hpp>
#include <boost/archive/polymorphic_xml_oarchive.hpp>
#include <boost/archive/xml_iarchive.hpp>
#include <boost/archive/xml_oarchive.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/assign/list_of.hpp>
......@@ -297,13 +297,13 @@ void test_serialization(LiegroupSpacePtr_t space)
std::stringstream ss;
{
boost::archive::polymorphic_xml_oarchive oa(ss);
boost::archive::xml_oarchive oa(ss);
oa << boost::serialization::make_nvp("element", e);
}
LiegroupElement e2;
{
boost::archive::polymorphic_xml_iarchive ia(ss);
boost::archive::xml_iarchive ia(ss);
ia >> boost::serialization::make_nvp("element", e2);
}
......
......@@ -20,8 +20,8 @@
#include <sstream>
#include <fstream>
#include <boost/archive/polymorphic_xml_iarchive.hpp>
#include <boost/archive/polymorphic_xml_oarchive.hpp>
#include <boost/archive/xml_iarchive.hpp>
#include <boost/archive/xml_oarchive.hpp>
#include <pinocchio/fwd.hpp>
#include <hpp/pinocchio/fwd.hh>
......
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