// Copyright 2020 Citra Emulator Project // Licensed under GPLv2 or any later version // Refer to the license.txt file included. #pragma once #include #include "common/serialization/boost_discrete_interval.hpp" namespace boost::serialization { template void serialize(Archive& ar, boost::icl::interval_set& obj, const unsigned int file_version) { using IntervalSet = boost::icl::interval_set; // This works because interval_set has exactly one member of type ImplSetT static_assert(std::is_standard_layout_v); ar&*(reinterpret_cast(&obj)); } } // namespace boost::serialization