3 ms·
> Also C and C++ are both permitted to reorder structs, it's just that they don't because that's the easiest way to follow the standard. Is that feasible? Doi
by 0x09 13y ago
> Also C and C++ are both permitted to reorder structs, it's just that they don't because that's the easiest way to follow the standard.
Is that feasible? Doing so would require that the order of the member addresses not correspond to their layout in memory.
- pjmlp 13y agoAs long as the code is fully visible and compiled by the same compiler, then yes.