load(static_cast<T::base_type &>(t));
portable_iarchive.hpp#L412:12: warning: casting 'boost::archive::class_id_type' to 'boost::uint_t<16>::least&' {aka 'short unsigned int&'} does not use 'boost::archive::class_id_type::operator base_type&()' [-Wcast-user-defined]
412 | load((typename boost::uint_t<sizeof(T) * CHAR_BIT>::least&)(t));
Hi,
We have a generic load routine for all types that feature conversion operators. Compiling this code with GCC 14 warns that compiler is not using the conversion operators [a]. Was there any specific reason to make
base_typeof these classes (which provide conversion operator[b]) private? Ifbase_typeis public then we could do something like[a]
[b]