Commit 85e10096 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

[Serialization] Fix skipping of device.

parent 884f61b4
Pipeline #12637 failed with stage
in 2 minutes and 17 seconds
......@@ -554,7 +554,7 @@ namespace hpp {
archive_device_wrapper* adw = dynamic_cast<archive_device_wrapper*>(&ar);
ar & BOOST_SERIALIZATION_NVP(name_);
bool written = (adw != NULL);
bool written = (adw == NULL);
ar & BOOST_SERIALIZATION_NVP(written);
if (written) {
// AbstractDevice
......
......@@ -196,7 +196,7 @@ namespace hpp {
(void) version;
ar & boost::serialization::make_nvp("base", boost::serialization::base_object<Device>(*this));
archive_device_wrapper* adw = dynamic_cast<archive_device_wrapper*>(&ar);
bool written = (adw != NULL);
bool written = (adw == NULL);
ar & BOOST_SERIALIZATION_NVP(written);
if (written) {
ar & BOOST_SERIALIZATION_NVP(weakPtr_);
......
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