C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Named Return Value Optimisation [[nrvo]]

From: Jan Schultke <janschultke_at_[hidden]>
Date: Tue, 10 Feb 2026 14:01:36 +0100
> I think the meaning of [[nrvo]] as discussed in this thread was not just a
> performance optimization, but to allow modification after construction of
> non-moveable objects.
>

Alright fair point; we can't reasonably use ignorable attributes to enable
NRVO for immovable objects.

In any other situation, I think an attribute would work just fine.

Received on 2026-02-10 13:01:56