diff --git a/src/common/serialization/boost_discrete_interval.hpp b/src/common/serialization/boost_discrete_interval.hpp index 961a9a7ef..f04e3cabc 100644 --- a/src/common/serialization/boost_discrete_interval.hpp +++ b/src/common/serialization/boost_discrete_interval.hpp @@ -6,6 +6,7 @@ #include #include "common/common_types.h" +#include "common/logging/log.h" namespace boost::serialization { @@ -25,7 +26,7 @@ void load(Archive& ar, boost::icl::discrete_interval& obj, ar >> lower; ar >> upper; ar >> bounds; - obj = boost::icl::discrete_interval(upper, lower, boost::icl::interval_bounds(bounds)); + obj = boost::icl::discrete_interval(lower, upper, boost::icl::interval_bounds(bounds)); } template diff --git a/src/common/serialization/boost_interval_set.hpp b/src/common/serialization/boost_interval_set.hpp index d4e48e62a..73a560360 100644 --- a/src/common/serialization/boost_interval_set.hpp +++ b/src/common/serialization/boost_interval_set.hpp @@ -26,7 +26,7 @@ void load(Archive& ar, boost::icl::interval_set& set, const unsigned int file for (u64 i = 0; i < count; i++) { typename boost::icl::interval_set::interval_type value{}; ar >> value; - set.add(value); + set += value; } }