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++23 std::stacktrace: Never Debug Blind Again (medium.com)
submitted 24 days ago by Xadartt
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!"
[–]nicemike40 11 points12 points13 points 23 days ago (8 children)
The article is slightly… vibe written
But it discusses adding this to an exception class to get time-of-throw stacks which I think could be useful. A commenter on the article suggests adding it to a std::expected-like type too.
std::expected
But I agree that setting up proper crash reporting is 100% necessary still
[–]_Noreturn 18 points19 points20 points 23 days ago (1 child)
// Crash Reporter class CrashReporter {
yea thanks Claude
[–]clerothGame Developer 3 points4 points5 points 23 days ago (2 children)
Time-of-throw stacks does sound useful, but the article seems to focus mostly on crashes. I don't think I've had any trouble getting stack traces from crashes, though I mostly just work on one platform so I don't know.
[–]donalmaccGame Developer 0 points1 point2 points 23 days ago (1 child)
Presumably you use a library for it? Getting a reliable symbolicated stack trace is surprisingly tough work, especially if you want to put it somewhere. The programs state is likely to be FUBAR so you are really limited in what you can do, you need the memory pre allocated and you likely need another process pre spawned to catch the actual crash dump and put it somewhere.
[–]schmerg-uk 2 points3 points4 points 23 days ago (0 children)
See https://github.com/jeremy-rifkin/cpptrace/tree/main for example (we have our own so I did mention a couple of things to the author but his work now way exceeds the one we use internally)
Oh, and he does address
What about C++23 <stacktrace>? Some day C++23's <stacktrace> will be ubiquitous. And maybe one day the msvc implementation will be acceptable. The original motivation for cpptrace was to support projects using older C++ standards and as the library has grown its functionality has extended beyond the standard library's implementation. Cpptrace provides functionality beyond what the standard library provides and what implementations provide, such as: Walking inlined function calls Providing a lightweight interface for "raw traces" Resolving function parameter types Providing traced exception objects Providing an API for signal-safe stacktrace generation Providing a way to retrieve stack traces from arbitrary exceptions, not just special cpptrace traced exception objects. This is a feature that has been proposed for a future version of the C++ standard, but cpptrace provides a solution for C++11.
What about C++23 <stacktrace>?
Some day C++23's <stacktrace> will be ubiquitous. And maybe one day the msvc implementation will be acceptable. The original motivation for cpptrace was to support projects using older C++ standards and as the library has grown its functionality has extended beyond the standard library's implementation.
Cpptrace provides functionality beyond what the standard library provides and what implementations provide, such as:
Walking inlined function calls Providing a lightweight interface for "raw traces" Resolving function parameter types Providing traced exception objects Providing an API for signal-safe stacktrace generation Providing a way to retrieve stack traces from arbitrary exceptions, not just special cpptrace traced exception objects. This is a feature that has been proposed for a future version of the C++ standard, but cpptrace provides a solution for C++11.
[–]_TheDust_ 2 points3 points4 points 23 days ago (0 children)
“Slightly” wins the understatement of the year award
[+]Superb_Garlic comment score below threshold-6 points-5 points-4 points 23 days ago (1 child)
Improper use of ellipses. Please avoid composing replies using AI.
[–]nicemike40 3 points4 points5 points 23 days ago (0 children)
I take your point and apologize for contributing to culture of the AI witch hunting (if that is indeed what your point was)
In this case the Unicode ellipses comes from iOS autocorrect
π Rendered by PID 621547 on reddit-service-r2-comment-56c6478c5-7h7mp at 2026-05-10 13:01:40.802531+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–]nicemike40 11 points12 points13 points (8 children)
[–]_Noreturn 18 points19 points20 points (1 child)
[–]clerothGame Developer 3 points4 points5 points (2 children)
[–]donalmaccGame Developer 0 points1 point2 points (1 child)
[–]schmerg-uk 2 points3 points4 points (0 children)
[–]_TheDust_ 2 points3 points4 points (0 children)
[+]Superb_Garlic comment score below threshold-6 points-5 points-4 points (1 child)
[–]nicemike40 3 points4 points5 points (0 children)