C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Explicit keyword for template parameters

From: Jason McKesson <jmckesson_at_[hidden]>
Date: Sun, 1 May 2022 12:50:15 -0400
On Sun, May 1, 2022 at 5:06 AM Jens Maurer via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> On 01/05/2022 09.46, Abdullah Qasim via Std-Proposals wrote:
> > How about:
> >
> >
> >
> > explicit template <typename T, typename U, typename ...V>
> >
> > T Func(U u, V... v)
> >
> >
> >
> > ??
>
> If "Func" is a constructor, how do you differentiate between
> the current meaning of "explicit" on a constructor and the
> new meaning?

Equally importantly, how do you differentiate between some parameters
which should be deduced and some that shouldn't?

Received on 2022-05-01 16:51:04