Created on 2022-07-19.00:00:00 last changed 1 month ago
Change in 188.8.131.52 [expr.sizeof] paragraph 2
... When applied to a class, the result is the number of bytes in an object of that class including any padding required for placing objects of that type in an array. The result of applying sizeof to a potentially-overlapping subobject is the size of the type, not the size of the subobject. [ Footnote: ... ]
Class types may have padding, influencing the result of sizeof. It is unclear whether the placement and amount of padding is implementation-defined, unspecified, or something else. If it is unspecified, the limits of permissible behavior are unclear. Empty classes might need special consideration.
|2022-07-16 08:34:33||admin||set||messages: + msg6888|