C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Stop gap required for NRVO until Anton's paper is assimilated

From: Thiago Macieira <thiago_at_[hidden]>
Date: Thu, 11 Jul 2024 15:21:05 -0700
On Thursday 11 July 2024 13:22:52 GMT-7 Lénárd Szolnoki via Std-Proposals
wrote:
> Regardless, we could serve both needs with the same opt-in syntax.

Fair.

In that case, the committee would have to decide between an attribute that
doesn't change behaviour but request diagnostics when NRVO can't be used, and
a function that forces it (except where it won't compile) and may have extra
functionality.

On the face of it, the standard library intrinsic function would be of greater
benefit. But only if the extra functionality is real.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel DCAI Platform & System Engineering

Received on 2024-07-11 22:26:14