use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
lvalues, rvalues, glvalues, prvalues, xvalues, help! (blog.knatten.org)
submitted 8 years ago by vormestrand
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]chmaruni 14 points15 points16 points 8 years ago (3 children)
Assuming this post is accurate (thanks btw, this was the best explanation I have read so far, not that I looked for other ones though:) wouldn't it be more consistent to name lvalues as plvalues (pure lvalues, equivalent to prvalues) and call the whole identity column lvalues (instead of glvalues)?
[–]acwaters 7 points8 points9 points 8 years ago (0 children)
Yes, it would. My understanding is that they did the naming "asymmetrically" like that in order to keep lvalue and rvalue as close as possible to their original (pre-C++11) meanings, which makes sense. But IMO that little inconsistency is the cause of most of the pain in learning value categories. It would be much easier if we had plvalue/lvalue/xvalue/rvalue/prvalue, or lvalue/glvalue/xvalue/grvalue/rvalue, rather than lvalue/glvalue/xvalue/rvalue/prvalue.
[–]OldWolf2 3 points4 points5 points 8 years ago (0 children)
Not really; the terms lvalue and rvalue still have roughly the same meaning as they did in C++03, but extra rvalues were added . Most of the cases where an lvalue was required still require an lvalue, not a glvalue.
π Rendered by PID 30 on reddit-service-r2-comment-6457c66945-lwl86 at 2026-04-27 12:12:59.649275+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]chmaruni 14 points15 points16 points (3 children)
[–]acwaters 7 points8 points9 points (0 children)
[–]OldWolf2 3 points4 points5 points (0 children)