Why can't I convert rvalues to lvalues? However, you can do the conversion in the opposite direction. Technically rvalues have a memory address, right?
You can:
int&& x = 3;
xnow lvalue. The so-called 'rvalue-reference' can bind to a temporary one , but all that has a name is an lvalue , so you need forward<>()it if you need to get it back.
x
forward<>()
, , rvalue- ( ), . , , , .
, rvalues lvalues?
. , lvalues lvalues, , . Rvalues , , lvalues.
, rvalue , :
auto&& val = f(); // 'f' returns a prvalue.