
7 Jan
2009
7 Jan
'09
5:09 p.m.
AMDG niranjan bangera wrote:
union myunion {
uint32_t a; float t;
template <class Archive> void serialize(Archive & ar, const unsigned int file_version) {
ar & a; ar & t;
}
This is undefined behavior. a and t cannot both be valid at the same time. In Christ, Steven Watanabe