After reading section"Lvalues and rvalues" [basic.lval] in the standard (
this version), I can't figure out if xvalue expressions are glvalues or rvalues?
There are two ways that it can be understood, please tell me which is right.
1. Every expression that is xvalue, is a glvalue expression and is also an rvalue expression.
2. Some xvalue expressions are glvalues (but not rvalues), while the rest are rvalues (but not glvalues).
It might be a good idea to add such information to the standard so that the standard is explicit about that.
Thank you,
Piotr