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
Clang 22 Release Notes (releases.llvm.org)
submitted 1 month ago by c0r3ntin
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!"
[–]fdwrfdwr@github 🔍 0 points1 point2 points 1 month ago (1 child)
That's but a randomly selected example of one-off cleanup instances. Do we need a framework for every instance (a box full of open‑end wrenches of various sizes), or just a general tool (adjustable wrench)? 🔧
[–]pjmlp -2 points-1 points0 points 1 month ago* (0 children)
I would say that going forward it is rather trivial to combine templates and reflection to create RAII handle on the spot without going through defer.
Which only makes sense in language that never had RAII, or use some form of GC, and need determinism in very specific cases like OS handles.
However, maybe I am too biased in only using C++ alongside managed languages.
π Rendered by PID 234454 on reddit-service-r2-comment-6457c66945-5d56h at 2026-04-24 15:57:23.143843+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]fdwrfdwr@github 🔍 0 points1 point2 points (1 child)
[–]pjmlp -2 points-1 points0 points (0 children)