C++ Logo

std-proposals

Advanced search

Re: [std-proposals] span<incomplete_type>

From: Barry Revzin <barry.revzin_at_[hidden]>
Date: Thu, 6 Jul 2023 11:53:24 -0500
On Thu, Jul 6, 2023 at 11:27 AM Jason McKesson via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> On Thu, Jul 6, 2023 at 2:50 AM Andrey Davydov via Std-Proposals
> <std-proposals_at_[hidden]> wrote:
> >
> > Hello everyone!
> >
> > I'd like to propose a support span of elements of incomplete type.
> > The draft of the proposal (
> https://github.com/AndreyG/cpp-papers/blob/main/span-of-incomplete-element-type.md)
> contains motivation. What do you think about it?
>
> The proposal needs to investigate why the limitation exists at all. I
> didn't know about it until you brought it up. You should spend some
> time looking into older versions of `span` or asking the people who
> made those proposals why the type is required to be complete.
>
> There could be some good-yet-esoteric reason why this limitation is here.
>

It was actually an unintended consequence of
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2278r4.html.

Esoteric? Yes. Good?

Barry

Received on 2023-07-06 16:53:38