diff --git a/src/common/boost_serialization_maps.h b/src/common/boost_serialization_maps.h index c5739279..f6704b95 100644 --- a/src/common/boost_serialization_maps.h +++ b/src/common/boost_serialization_maps.h @@ -4,7 +4,7 @@ #pragma once #include -#ifdef DISABLE_PFR_SERIALIZATION_SELFCHECK +#ifndef DISABLE_PFR_SERIALIZATION_SELFCHECK #include #endif #define BEGIN_BOOST_SERIALIZATION() template void serialize(t_archive &_arch, const unsigned int ver) { @@ -38,7 +38,7 @@ template struct TAssertEquality { fields to the structure but forgets to update the serialization map, the compilation will fail. Any update to "num_fields" must be accompanied by a thorough review of the serialization map to ensure no fields are omitted. **********************************************************************************************************************************/ -#ifdef DISABLE_PFR_SERIALIZATION_SELFCHECK +#ifndef DISABLE_PFR_SERIALIZATION_SELFCHECK #define END_BOOST_SERIALIZATION_TOTAL_FIELDS(num_fields) static_assert(num_fields == boost::pfr::tuple_size::type>::value, "Unexpected number of fields!"); } #else #define END_BOOST_SERIALIZATION_TOTAL_FIELDS(num_fields) END_BOOST_SERIALIZATION()