On Wed, May 10, 2023 at 3:29 PM Thiago Macieira via Std-Discussion <std-discussion@lists.isocpp.org> wrote:
On Wednesday, 10 May 2023 03:43:57 PDT Edward Catmur via Std-Discussion wrote:
> TBH, it looks like this has been broken since C++11 (when we first allowed
> standard layout class types to have bases).
> https://timsong-cpp.github.io/cppwp/n3337/class#7

Didn't C++11 have a limitation that only one class in the hierarchy could have
non-static data members and still be standard layout?

I also misread  Lénárd's example the first time I saw it.

`C` doesn't derive from `B`; `C` only derives from `A`. And `A` has no data members.


--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering



--
Std-Discussion mailing list
Std-Discussion@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-discussion


--
Brian Bi