invalid offsetof from non-POD type

Gareth Pearce tilps@hotmail.com
Fri Apr 25 12:29:00 GMT 2003


> BTW, do people do things like
> offsetof (T, m.sub_m)
> ? I don't think it blessed by the C/c++ std, but falls out of the common
> implementation of offsetof.

The code I changed to use pointer to members used this kind of thing, and
working around it was terrible.

Gareth



More information about the Gcc mailing list