Hello everyone,
Is the conclusion correct? Both const reference and non-const reference are lvalue?
I think it is true and I can not find a sample which does not follow it.
thanks in advance,
George
Printable View
Hello everyone,
Is the conclusion correct? Both const reference and non-const reference are lvalue?
I think it is true and I can not find a sample which does not follow it.
thanks in advance,
George
For all intents and purposes, yes. (From a language lawyer standpoint, I think references are actually neither, but can always be converted to lvalues.)
No, I can't. I'm too lazy to look up the wording of the standard, and it doesn't matter.