I agree: I do not master C++ value categories, but I am pretty sure there are a few errors. And you don't get to understand much anyway. Does anybody know some better writeup on the subject? It is probably the biggest core C++ topic that I still have to properly digest.
With all due respect but it looks like a trimmed down copy-paste from cppreference. I dont think they are original themselves, but they don't pretend to be imho. Maybe it's just the same source.
Information-wise it's nothing more and slightly less. So I'd suggest checking the other source.
9 comments
[ 2.3 ms ] story [ 28.6 ms ] threadWait, I thought it was for a value that could appear on the "left" hand side of an expression…
If you need proof you can look it up in the standard:
https://stackoverflow.com/a/15765936/265521
It is perhaps better considered as representing an object ‘‘locator value’’.
http://www.open-std.org/jtc1/sc22/WG14/www/docs/n1256.pdf
Information-wise it's nothing more and slightly less. So I'd suggest checking the other source.
Not necessarily. It might also inhabit a register.
> When C++ introduced the const keyword...
As of Stroustrup's first publication of “The C++ Programming Language”, C++ has always had the `const` qualifier.
There may be more errors, but this should be enough to discard this writeup and seek enlightenment from a qualified source.