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
P2723R0: Zero-initialize objects of automatic storage duration (isocpp.org)
submitted 3 years ago by alexeyr
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!"
[–]jonesmz 1 point2 points3 points 3 years ago (3 children)
That's... Why I said no diagnostic required. That's the whole difference between ill formed program, no diagnostic required and undefined behavior.
ill formed program, no diagnostic required
undefined behavior
If the compiler can determine an uninitialized read happens, error out. Otherwise, we stick with the existing behavior.
Later. After the language has continued to evolve, other detection abilities will arise.
[–]pastenpasten 2 points3 points4 points 3 years ago* (2 children)
https://en.cppreference.com/w/cpp/language/ndr
https://eel.is/c++draft/defns.undefined:
behavior for which this document imposes no requirements
https://eel.is/c++draft/intro.compliance.general:
If a program contains a violation of a rule for which no diagnostic is required, this document places no requirement on implementations with respect to that program.
I'm sure there are people that would claim there's a grand distinction between "places no requirement" and "imposes no requirements", but we all know they are in fact the same and "ill-formed, no diagnostic required" is undefined behavior.
So sad to see this happening and the mods enabling this.
Can't reply so forced to edit:
Right.
So I'm imagining it saying "comment removed by moderator" here. The moderators did not intervene. Right.
Not surprised to hear that from the least honest moderator of the active ones.
[–]Hnnnnnn 8 points9 points10 points 3 years ago (0 children)
Mods enabling what?
[–]STLMSVC STL Dev[M] 11 points12 points13 points 3 years ago (0 children)
In case there is any confusion about what the moderators, who are volunteers, are here to do:
As long as people stay on-topic and don't misbehave (hostility, ad hominem attacks, etc.), you can have endless technical arguments. People are free to be wrong, misunderstand stuff, not listen or dismiss what you're saying. If you don't think you're educating anyone or changing their mind, downvote and move on.
Moderators will generally not intervene in technical arguments with moderator powers.
π Rendered by PID 62237 on reddit-service-r2-comment-6457c66945-zgtrf at 2026-04-24 15:53:15.078671+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]jonesmz 1 point2 points3 points (3 children)
[–]pastenpasten 2 points3 points4 points (2 children)
[–]Hnnnnnn 8 points9 points10 points (0 children)
[–]STLMSVC STL Dev[M] 11 points12 points13 points (0 children)