Given the struct:
struct Struct { int _a; int a () { return _a; } };
One is able to get the offset of _a with offsetof( Struct, _a ).
_a
offsetof( Struct, _a )
How would I go about doing the same for something like &Struct::a?
&Struct::a
Aucun commentaire:
Enregistrer un commentaire