C++ Logo

sg12

Advanced search

Re: [isocpp-ext] [isocpp-core] P3006 Launder less after placement new

From: Jason Merrill <jason_at_[hidden]>
Date: Wed, 18 Oct 2023 12:21:48 -0400
On Tue, Oct 17, 2023 at 12:25 PM Andrey Erokhin <language.lawyer_at_[hidden]>
wrote:

> > Actually, it would probably be better to refer to "provides storage" in
> the
> > proposed change, e.g. something like
> >
> > "one is an array of std::byte or unsigned char and the other is an object
> > for which the array provides storage, created at the address of the first
> > array element"
>
> I think we need to convert between array elements and objects, not arrays.
> E.g.
>
> "One is an array of std::byte or unsigned char element and the other is an
> object for which the array provides storage, created at the address of the
> array element"
>

Agreed, though I'd reorder the beginning a bit to

"One is an element of an array of std::byte or unsigned char and the other
is an object for which the array provides storage, created at the address
of the array element"

Jason

Received on 2023-10-18 16:22:04