Date: Thu, 30 Nov 2023 12:47:13 +0000
On Thu, Nov 30, 2023 at 12:31 PM Andrey Semashev wrote
>
> Writing it the other way doesn't make sense, as you can't apply a
> reference to an expanded pack.
I see nothing nonsensical about the following:
template<typename... Params>
void Func(Params... &&args)
{
}
This syntax would make perfect sense to me given that I must define
multiple variables as follows:
int &&i = a, *const pj = &b, &k = c;
But anyway . . . the ship sailed 12 years ago and we must write
"Params&&...", so case closed.
>
> Writing it the other way doesn't make sense, as you can't apply a
> reference to an expanded pack.
I see nothing nonsensical about the following:
template<typename... Params>
void Func(Params... &&args)
{
}
This syntax would make perfect sense to me given that I must define
multiple variables as follows:
int &&i = a, *const pj = &b, &k = c;
But anyway . . . the ship sailed 12 years ago and we must write
"Params&&...", so case closed.
Received on 2023-11-30 12:47:25