I have been using some code that makes use of the
following define from winnt.h
#define FIELD_OFFSET(t,f) ((LONG)&(((t*)0)->f))
Unfortunately this doesn't seem to be a valid constant
expression in the new c++ parser in 3.4? And I get
errors when I try and make use of it in case
statements. Could we make use of the offsetof macro in
stddef.h to fix this?
Log in to post a comment.