------- Comment #2 from tristan_schmelcher at alumni dot uwaterloo dot ca  
2008-06-08 01:41 -------
Just a note for posterity:

Using offsetof in this particular case (and many others) will work in G++, but
the standard doesn't require that, so in theory it's not portable. That's why
G++ prints a warning. You can suppress it with -Wno-invalid-offsetof.


-- 

tristan_schmelcher at alumni dot uwaterloo dot ca changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tristan_schmelcher at alumni
                   |                            |dot uwaterloo dot ca


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27941

Reply via email to