Warning in eos::portable_iarchive
Due to User-Defined Cast in Boost Serialization
#47250
Labels
eos::portable_iarchive
Due to User-Defined Cast in Boost Serialization
#47250
When compiling CMSSW (
CMSSW_15_0_X_2025-02-01-1100
) with GCC 14, a warning is triggered ineos::portable_iarchive
due to an explicit cast bypassing a user-defined conversion operator in Boost Serialization.This suggests that
boost::archive::class_id_type
has a user-defined conversion operator that should be used instead of a C-style cast.Possible fixes
Use an explicit static_cast instead of a C-style cast
Instead of:
Use:
Use
boost::archive::class_id_type::base_type
if applicableThe text was updated successfully, but these errors were encountered: