C++ Logo

std-discussion

Advanced search

Re: Possible defect in definition of standard-layout

From: Thiago Macieira <thiago_at_[hidden]>
Date: Wed, 10 May 2023 12:29:13 -0700
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?

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

Received on 2023-05-10 19:29:16