I think creating a big object just to find a member downgrades the performance. For this special case I recommend to use some fancy macros, eg. offsetof, even the sanitizers will complain. Maybe the sanitizers could be disabled for that specific code.
I think creating a big object just to find a member downgrades the performance. For this special case I recommend to use some fancy macros, eg. offsetof, even the sanitizers will complain. Maybe the sanitizers could be disabled for that specific code.