diff --git a/modules/kernel/include/set_map_macros.h b/modules/kernel/include/set_map_macros.h index df95dc5d4b..66d6265075 100644 --- a/modules/kernel/include/set_map_macros.h +++ b/modules/kernel/include/set_map_macros.h @@ -54,6 +54,14 @@ #define IMP_KERNEL_LARGE_UNORDERED_SET boost::unordered_set #define IMP_KERNEL_LARGE_UNORDERED_MAP boost::unordered_map +// Use cereal's own functions to serialize unordered_map, not those +// provided (for Boost.Serialize) in newer Boost versions +namespace cereal { + template + struct specialize, + cereal::specialization::non_member_load_save> {}; +} + #if defined(_MSC_VER) && _MSC_VER <= 1500 #include // IWYU pragma: export #include // IWYU pragma: export