C++ Logo

std-proposals

Advanced search

[std-proposals] Unlocking the potential of prvalue & xrvalue

From: organicoman <organicoman_at_[hidden]>
Date: Sat, 06 Sep 2025 01:18:29 +0100
Hello,Given the following function signature:RetType foo(T&& arg);There is no way to tell, from inside the function block, if the parameter passed to this function is a prvalue or an xrvalue, since both can bind to T&&.Despite there is a fundamental difference between prvalue and xrvalue, yet we are not taking advantage of that because we cannot differentiate between them.Is there any proposal talking about this problem?RegardsOg

Received on 2025-09-06 00:18:39