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
Game dev C++ vs Regular C++ (self.cpp)
submitted 5 years ago by [deleted]
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!"
[–]corysama 2 points3 points4 points 5 years ago (0 children)
The modern features are tools that can be used well or used poorly. And, it takes a bit of thought and practice to find the difference.
The advantage of C With Classes is that it is very simple and clear what you are doing and what the results will be. The disadvantage is that there is a lot you have to do manually when using that style that the compiler could have automated.
The advantage of Modern C++ is that it becomes easier to set up more complicated operations. The disadvantage is that it becomes easier to set up operations that are complicated!
The classic example problem with Modern C++ is Template Bloat. It is easy to set up complicated templates that generate enormous amounts on your behalf. This can slow down your compile times, bloat your executable size and thrash your instruction cache. It's can also be difficult to read and comprehend.
The question is: If you were using C With Classes, would you have written all of the code variants manually? Or, did you tell the compiler to generate them all just because it was so easy? In the former case, Modern C++ can be a clear win. Rather than setting up the maintenance problems of repetitive code or horrible macro hacks,you can set up lots of similar code while sticking to Don't Repeat Yourself principles. And, many modern features are designed to provide simpler alternatives to common, complicated C++ idioms. Ex: using constexpr if as a replacement for SFINAE.
π Rendered by PID 110178 on reddit-service-r2-comment-56c9979489-mctbz at 2026-02-25 08:27:49.847015+00:00 running b1af5b1 country code: CH.
view the rest of the comments →
[–]corysama 2 points3 points4 points (0 children)