Date: Sat, 6 Sep 2025 15:23:27 +0100
On Saturday, September 6, 2025, organicoman via Std-Proposals <
std-proposals_at_[hidden]> wrote:
> 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?
>
> Regards
> Og
>
>
I toyed with this a while back:
http://www.virjacode.com/papers/prvalue_params.htm
std-proposals_at_[hidden]> wrote:
> 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?
>
> Regards
> Og
>
>
I toyed with this a while back:
http://www.virjacode.com/papers/prvalue_params.htm
Received on 2025-09-06 14:23:34