C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Automatic perfect forwarding is possible and not too complicated

From: Jonathan Wakely <cxx_at_[hidden]>
Date: Sun, 13 Apr 2025 17:22:28 +0100
On Sun, 13 Apr 2025, 16:46 Robin Savonen Söderholm via Std-Proposals, <
std-proposals_at_[hidden]> wrote:

> But '&&' does not mean 'forwarding reference'. It means 'rvalue
> reference'. It's just that an rvalue reference of an lvalue reference is an
> lvalue reference.
>

That's not really true. It does have special magic rules in the context of
a deduced template parameter. It's not just reference collapsing.

//
>

Received on 2025-04-13 16:22:49