id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 3233,serialization problem: enum : __int64,dcb_BanDos ,Robert Ramey,"I have a enum and structure: {{{ #!c typedef enum : unsigned __int64 { epUnknown = 0x0, epCpuSystem = 0x0001LL, .... epAvgCpu= 0x100000000LL } CGenericParamParam; struct fee { .... CGenericParamParam param; } }}} Then i try to serialize this structure into boost::archive::binary_oarchive via boost::serialization: {{{ #!c template struct save_enum_type { static void invoke(Archive &ar, const T &t){ // convert enum to integers on save const int i = static_cast(t); ar << boost::serialization::make_nvp(NULL, i); } }; }}} Casting __0x100000000LL into int gives 0. Any ideas? ",Bugs,closed,Boost 1.40.0,serialization,Boost 1.39.0,Problem,wontfix,__int64 enum serialization,