C++03 $14.1/6 – “A non-type
non-reference template-parameter is
not an lvalue.”C++0x $14.2/6- “A non-type
non-reference template-parameter is an
rvalue.”
Is there any specific rationale behind rewording it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
With the new C++0x wording, an expression can either be an lvalue, xvalue or prvalue. The first two are summed as glvalue and the latter two as rvalue.
The C++0x text says prvalue, not rvalue. Since neither “not lvalue” nor “rvalue” will say definitely what it is.