I think I'm missing something basic regarding the lvalue-to-rvalue standard conversion.
From C++11 4.1:
A glvalue of a non-function, non-array type T can be converted to a prvalue
So we declare a variable x
:
int x = 42;
An expression x
in this scope is now an lvalue (so also a glvalue). It satisfies the requirements in 4.1 for an lvalue-to-rvalue conversion.
What is a typical example of a context where the lvalue-to-rvalue conversion is applied to the expression x
?