You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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_type of these classes (which provide conversion operator[b]) private? If base_type is public then we could do something like
load(static_cast<T::base_type &>(t));
[a]
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_type
of these classes (which provide conversion operator[b]) private? Ifbase_type
is public then we could do something like[a]
[b]
The text was updated successfully, but these errors were encountered: