id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 806,serialization of classes with overloaded operator & fails,nobody,Robert Ramey,"{{{ the serialization of the following class fails to compile at line 363 in detail/iserializer.hpp, struct load_standard, method invoke, line void * x = & const_cast(t); class wrapped_value { public: const int* operator & () { // returns the address of the wrapped integer, which may noy be the same as the address of the instance return &a; } template void serialize(Archive& ar, const unsigned version) { ar & a; } private: int a; }; due to the overloaded '&' operator getting the address of the instance fails. a proposed patch is void * x = boost::addressof( const_cast(t) ); which seems to compile and work correctly cheers }}}",Bugs,closed,,serialization,None,,Rejected,,