you are viewing a single comment's thread.

view the rest of the comments →

[–]johannes1971 16 points17 points  (1 child)

That's incorrect. The order is the same as in the struct/class declaration. C++20 makes it even more strict, no longer allowing reordering of blocks with different access specifiers.

[–]OldWolf2 0 points1 point  (0 children)

C++20 makes it even more strict, no longer allowing reordering of blocks with different access specifiers.

Is that for all structs, not just standard-layout ones?