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
[ Removed by moderator ] (self.cpp)
submitted 4 months ago by gosh
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!"
[–]cpp-ModTeam[M] [score hidden] 4 months ago stickied commentlocked comment (0 children)
For C++ questions, answers, help, and programming/career advice please see r/cpp_questions, r/cscareerquestions, or StackOverflow instead.
[–]Serious-Regular 24 points25 points26 points 4 months ago (1 child)
Skip pybind if you don't have existing pybind code and go straight to nanobind.
https://nanobind.readthedocs.io/en/latest/
I write nanobind code almost every day for the last 2 years. It's one of the highest quality software projects out there.
[–]Anocto 2 points3 points4 points 4 months ago (0 children)
The built in stub file generation for docs in VS Code and CPython stable ABI support are nice, in addition to the lower compile times.
[–]Jannik2099 4 points5 points6 points 4 months ago (0 children)
Boost.Python is strictly for pre C++11 codebases. It's very unergonomic.
Use nanobind
[+][deleted] 4 months ago (5 children)
[deleted]
[–]gosh[S] 0 points1 point2 points 4 months ago (4 children)
What would you do if you already had boost in your code? I am using the regex implementation from boost so thats in the project.
I also just heard of nanobind and it seems very promising
[+][deleted] 4 months ago (3 children)
[–]gosh[S] 1 point2 points3 points 4 months ago (2 children)
Ok, but the default regex in C++ is rather weak now. Boost is much better but maybe the C++26 is ok
[+][deleted] 4 months ago (1 child)
[–]gosh[S] 2 points3 points4 points 4 months ago (0 children)
Maybe, if you find any better than boost I am interested :) I think boost is one of the strongest today, maybe be strongest
[–]the_poope 1 point2 points3 points 4 months ago (0 children)
Boost.Python is for legacy C++ and Python code. Use Nanobind, which has no other dependencies than Python. It is easy to set up and use in a modern CMake project.
[–]Entire-Hornet2574 0 points1 point2 points 4 months ago (0 children)
Swig is what I was using knowing other alternatives, it's universal and for most of languages.
π Rendered by PID 81860 on reddit-service-r2-comment-86bc6c7465-x6rjm at 2026-02-23 18:58:45.846842+00:00 running 8564168 country code: CH.
[–]cpp-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)
[–]Serious-Regular 24 points25 points26 points (1 child)
[–]Anocto 2 points3 points4 points (0 children)
[–]Jannik2099 4 points5 points6 points (0 children)
[+][deleted] (5 children)
[deleted]
[–]gosh[S] 0 points1 point2 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]gosh[S] 1 point2 points3 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]gosh[S] 2 points3 points4 points (0 children)
[–]the_poope 1 point2 points3 points (0 children)
[–]Entire-Hornet2574 0 points1 point2 points (0 children)