Standard-layout and tail padding Languages

Standard-layout and tail padding

David Hollman recently tweeted the following example (which I've slightly reduced):You can examine the layout in clang on godbolt and see that the reason the size changed is that in FooBefore, the member value is placed at offset 16 (maintaining a full alignment of 8 from FooBeforeBase) whereas in FooAfter,...
Read More