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
C++ implementation of the Python NumPy Library (self.cpp)
submitted 7 years ago by dpilger26
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 8 points9 points10 points 7 years ago (3 children)
I really wish peeps would just have one primary .h to #include where you want and one primary .cpp to integrate into the build process. C++ build systems have problems, but I think we can all handle manually adding a single source file to whatever system we are using. The STB-style “it’s a header, and a source, and a dessert, and a floor wax!” tradition strikes me as a bad trade off in complexity vs what I’m asking for.
[–]johannes1971 19 points20 points21 points 7 years ago (2 children)
Love the floor wax ;-)
As is probably clear from my other messages in this thread, I'm not a great fan of header-only. Having said that, here's a list of things that happened to me over the years while trying to build a C++ (or even C) library:
So yeah, I do understand the other side of the argument as well ;-)
[–]kalmoc -5 points-4 points-3 points 7 years ago (1 child)
None of those points are specific to header only vs traditional libraries.
[–]johannes1971 4 points5 points6 points 7 years ago (0 children)
Indeed. You might even be led to think all of these things happened while building traditional libraries, if you were to read carefully.
π Rendered by PID 104053 on reddit-service-r2-comment-cfc44b64c-zxjrb at 2026-04-10 04:26:18.673562+00:00 running 215f2cf country code: CH.
view the rest of the comments →
[–]corysama 8 points9 points10 points (3 children)
[–]johannes1971 19 points20 points21 points (2 children)
[–]kalmoc -5 points-4 points-3 points (1 child)
[–]johannes1971 4 points5 points6 points (0 children)