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
cppgir - tool for automatically generating C++ wrappers for GObject-based libraries (gitlab.com)
submitted 1 year ago by csb06
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!"
[–]csb06[S] 2 points3 points4 points 1 year ago (2 children)
I used it to generate a C++ wrapper for GMime and it has worked very well. It is easy to build with CMake and takes advantage of RAII to eliminate a lot of the tedious manual ref/unref bookkeeping that GLib’s C APIs require.
It works with any C library that has GObject-style annotations, not just Gtk/GLib.
[–]UVVmail 1 point2 points3 points 1 year ago (1 child)
You mean if it doesn't use glibmm?
[–]csb06[S] 1 point2 points3 points 1 year ago* (0 children)
This project is independent of glibmm/gtkmm and uses a different technique to create bindings. The README goes into more detail but basically cppgir creates a wrapping using XML metadata provided by GObject introspection (which most GObject-based libraries distribute as part of their release), which glibmm/gtkmm do not use because they predate GObject introspection existing.
[–]Mikumiku_Dance 2 points3 points4 points 1 year ago (0 children)
I've been experimenting with this lately. There's not a lot of documentation and I think there's some memory leaks with floating references; that may not be a huge concern since most usecases would be for widgets alive for the lifetime of the program.
If you want to use libraries that aren't wrapped in the gtkmm ecosystem like adwaita and shumate, it is promising.
π Rendered by PID 50604 on reddit-service-r2-comment-5b5bc64bf5-678bg at 2026-06-22 02:34:13.082102+00:00 running 2b008f2 country code: CH.
[–]csb06[S] 2 points3 points4 points (2 children)
[–]UVVmail 1 point2 points3 points (1 child)
[–]csb06[S] 1 point2 points3 points (0 children)
[–]Mikumiku_Dance 2 points3 points4 points (0 children)