From here I’ve got the mixed feelings that something is not right.
Is it true that named int isn’t lvalue but named float is?
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.
The comment in the link says “integer, pointer and member pointer template parameters aren’t lvalues” (emphasis mine). It does not say that named integer variables are not lvalues – they are.
If there were such a thing as floating-point template parameters, then they wouldn’t be lvalues either; but named floating-point variables still would be.