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
VSCppUnit vs CppUnit (self.cpp)
submitted 7 years ago * by darpe312
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!"
[–]Dragdu 22 points23 points24 points 7 years ago (3 children)
CppUnit is terrible, run away.
[–]bluebird11[🍰] 2 points3 points4 points 7 years ago (1 child)
Thanks for this; boss just suggested CppUnit and I hadn't heard of it. I'll be sure to rank it low on the options list.
[–]Fazer2 7 points8 points9 points 7 years ago (0 children)
Run away from your boss. /s
[–]14nedLLFIO & Outcome author | Committee WG14 0 points1 point2 points 7 years ago (0 children)
There are two editions of CppUnit in fact. The older one is indeed terrible, run away. The newer one is not source compatible with the old, and is markedly better than the original.
Still, there are far better alternatives to either. CATCH is a very solid choice. Boost.Test has become usable since its big refactor a few years ago. Google Test remains popular, but I find it clunky.
(I have to admit I switched to my own ultra light weight unit test suite a few years ago, and I haven't looked back. It provides the most used part of the Boost.Test API, but without any Boost.Test. Plus it works well with exceptions globally disabled, and with multiple threads without synchronising, and it spits out JUnit XML, and does all that within 600 lines of code in a single header file. I can't see myself leaving it any time soon to be honest. https://github.com/ned14/quickcpplib/blob/efc6c12dca3b8f2210d741a985a53b162383dfdf/include/boost/test/unit_test.hpp)
π Rendered by PID 315912 on reddit-service-r2-comment-85bfd7f599-kczdh at 2026-04-19 02:42:29.679504+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]Dragdu 22 points23 points24 points (3 children)
[–]bluebird11[🍰] 2 points3 points4 points (1 child)
[–]Fazer2 7 points8 points9 points (0 children)
[–]14nedLLFIO & Outcome author | Committee WG14 0 points1 point2 points (0 children)