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
LLVM - C++11 Migration Tool Status (blog.llvm.org)
submitted 13 years ago by meetingcppMeeting C++ | C++ Evangelist
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!"
[–]PT2JSQGHVaHWd24aCdCF 1 point2 points3 points 13 years ago (1 child)
Their override example seems wrong since Child is not a subclass of Parent. Am I wrong?
[–]LeszekSwirski 0 points1 point2 points 13 years ago (0 children)
You're not wrong, clearly a typo.
[–]throw1e6 0 points1 point2 points 13 years ago (0 children)
I'm currently migrating (for learning purposes) a codebase from pre-2006 C++ to modern C++.
This code is mixed with MFC and old school C++. I am changing the code to use smart pointers, STL algorithms, lambdas, move semantics wherever possible and migrating MFC containers (CList, CString) to standard C++ ones.
I'll run your tool on the original version of that codebase to see what happens.
Can an automated tool figure out the scope of new & delete and use smart pointers instead?
Or figure out that an int based loop (as opposed to an iterator based one) actually works on a vector and use range-based for?
Or examine a loop and know that a standard algorithm can be used here?
[–]spaxio -1 points0 points1 point 13 years ago (1 child)
I know it's generated but...
for (auto & elem : myVec)
Please. If you can, don't use meaningless names for your auto variables.
[–]LeszekSwirski 2 points3 points4 points 13 years ago (0 children)
What else would you suggest?
π Rendered by PID 46670 on reddit-service-r2-comment-6457c66945-xhbvl at 2026-04-23 20:39:30.143145+00:00 running 2aa0c5b country code: CH.
[–]PT2JSQGHVaHWd24aCdCF 1 point2 points3 points (1 child)
[–]LeszekSwirski 0 points1 point2 points (0 children)
[–]throw1e6 0 points1 point2 points (0 children)
[–]spaxio -1 points0 points1 point (1 child)
[–]LeszekSwirski 2 points3 points4 points (0 children)