Date: Tue, 3 May 2022 06:38:39 +0000
For explicit templates:
explicit template <typename T, typename U, typename ...V>
T Func ()
For selective explicit templates
Template <explicit typename T, typenname U, typename ...V>
T Func ()
For explicit constructors:
template <typename T>
explicit T Class<T>::Class (T var)
From: Jason McKesson via Std-Proposals<mailto:std-proposals_at_[hidden]>
Sent: 01 May 2022 21:51
To: std-proposals_at_[hidden]<mailto:std-proposals_at_[hidden]>
Cc: Jason McKesson<mailto:jmckesson_at_[hidden]>
Subject: Re: [std-proposals] Explicit keyword for template parameters
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?
explicit template <typename T, typename U, typename ...V>
T Func ()
For selective explicit templates
Template <explicit typename T, typenname U, typename ...V>
T Func ()
For explicit constructors:
template <typename T>
explicit T Class<T>::Class (T var)
From: Jason McKesson via Std-Proposals<mailto:std-proposals_at_[hidden]>
Sent: 01 May 2022 21:51
To: std-proposals_at_[hidden]<mailto:std-proposals_at_[hidden]>
Cc: Jason McKesson<mailto:jmckesson_at_[hidden]>
Subject: Re: [std-proposals] Explicit keyword for template parameters
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?
-- Std-Proposals mailing list Std-Proposals_at_[hidden] https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
Received on 2022-05-03 06:38:43