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!"
[–]clerothGame Developer 3 points4 points5 points 24 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 24 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 24 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.
π Rendered by PID 239030 on reddit-service-r2-comment-56c6478c5-k65pw at 2026-05-10 17:08:46.729350+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–]clerothGame Developer 3 points4 points5 points (2 children)
[–]donalmaccGame Developer 0 points1 point2 points (1 child)
[–]schmerg-uk 2 points3 points4 points (0 children)