C++ Logo

std-proposals

Advanced search

Re: Allowing access to object representations

From: Language Lawyer <language.lawyer_at_[hidden]>
Date: Sat, 17 Aug 2019 23:39:15 +0300
On 17/08/2019 23:02, sdkrystian via Std-Proposals wrote:
> > But where the object representation of a zero size base class subobject of `o` will appear?
> You seem to guarantee that it, despite having zero size, still has sizeof(T) ≠ 0 elements.
>
> It won't appear in the enclosing object (the wording only guarantees so for objects of nonzero size); specifying so would just be extraneous wording.

A zero size base class subobject with nonzero elements in its object representation which do not "appear" in its enclosing object's representation sounds weird.

Received on 2019-08-17 15:41:19