C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Return Value Optimisation whenever you need it (guaranteed elision)

From: Thiago Macieira <thiago_at_[hidden]>
Date: Mon, 14 Aug 2023 08:17:48 -0700
On Sunday, 13 August 2023 23:09:50 PDT Frederick Virchanza Gotham via Std-
Proposals wrote:
> > > for return Widget w = 42;
> >
> > for (return Widget w = 42;;);
>
> That second one is illformed so I don't see a problem here.

Right, for expects an expression but return is a statement, so it isn't
allowed there.

Never mind this email. I didn't check that it compiled before sending.

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

Received on 2023-08-14 15:17:51