C++ Logo

STD-PROPOSALS

Advanced search

Subject: Re: [std-proposals] "Union types" syntactic sugar
From: Barry Revzin (barry.revzin_at_[hidden])
Date: 2020-03-04 12:16:43


On Wed, Mar 4, 2020, 11:50 AM Ville Voutilainen <ville.voutilainen_at_[hidden]>
wrote:

> On Wed, 4 Mar 2020 at 19:34, Barry Revzin via Std-Proposals
> <std-proposals_at_[hidden]> wrote:
> >
> > On Wed, Mar 4, 2020, 11:11 AM Sebastian Büttner via Std-Proposals <
> std-proposals_at_[hidden]> wrote:
> >>
> >> Sure! You can do this (you were missing the "auto" of the
> placeholder-type-specifier):
> >>
> >> void f(std::basic_string<any_of<char, uint8_t> auto> x);
> >
> >
> > This one is not valid in C++20, but hopefully will become valid in C++23
> (although the auto would go outside the template - basic_string<Concept>
> auto)
>
> I don't think it would go outside.
>

I'm looking forward to reading in your proposal why it should go inside :-)

Barry

>



STD-PROPOSALS list run by herb.sutter at gmail.com

Standard Proposals Archives on Google Groups