
25 Mar
2024
25 Mar
'24
4:50 a.m.
someone at reddit gave me at hint to use signed int for the version::value when i change the version routine in serialize_MyType.hpp to use int it links template <typename V, std::size_t D> struct version<MyType<V, D>> { // does not link // BOOST_STATIC_CONSTANT( unsigned int, value = 1 ); // links BOOST_STATIC_CONSTANT( int, value = 1 ); }; i don't understand why that is working and if that is intended - as the version seems to be given as unsigned int to the load/save routines