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
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.)
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
No, I can't. I'm too lazy to look up the wording of the standard, and it doesn't matter.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law