C++ Logo

std-discussion

Advanced search

Re: Positioning the && after the ...

From: Thiago Macieira <thiago_at_[hidden]>
Date: Thu, 30 Nov 2023 21:57:39 +0100
On Thursday, 30 November 2023 13:47:13 CET Frederick Virchanza Gotham via Std-
Discussion 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:

The reason why it is nonsensical is in the text you quoted: it would mean
applying a reference to an expanded pack. That is a nonsensical concept.

Because it's nonsensical, the syntax could have been allowed to mean something
sensical. But it wasn't done because splitting the types like you're comparing
to is not considered a good idea.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-11-30 20:57:44