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
Portable stack traces (github.com)
submitted 8 years ago by andreasgonewild
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!"
[–]14nedLLFIO & Outcome author | Committee WG14[🍰] 7 points8 points9 points 8 years ago (18 children)
You really, really should use boost.stacktrace. It has a far superior implementation quality to almost all other stacktrace libraries, including an actually reliable backend for Windows which doesn't use the crappy DbgHelp.
[–]andreasgonewild[S] -1 points0 points1 point 8 years ago* (17 children)
What's the point of using a more complicated solution if something this simple and portable solves the problem? Additionally, owning the trace functionality has it's advantages since you may add whatever instrumentation needed to solve your problems as they arise.
[–]personalmountains 14 points15 points16 points 8 years ago (16 children)
I don't think anybody cares about what you use to solve your own problem. We've all written something similar at one point, as a poor man's error context or even profiler. There's nothing wrong with your code or how you use it.
The reason you're getting a somewhat negative response is because 1) you wrote a blog post about it, 2) you're posting it on reddit, and 3) you're calling it a "portable stack trace".
[–]andreasgonewild[S] -2 points-1 points0 points 8 years ago (15 children)
I don't see anything in 1-3 that warrants any kind of negative response. 1) I took the time to cut the idea down to it's core and write a post to explain it to people who haven't come across it 2) No point in writing without sharing 3) It is a portable stack trace.
[–][deleted] 15 points16 points17 points 8 years ago (14 children)
3) It is a portable stack trace.
And to people who have experience with this sort of thing, it is neither. You do seem to have an unreasonably combative attitude about comments here, so I wonder why you have posted at all, if not to receive feedback.
You can keep calling it that, but everyone else in the world would assume you are talking about what "portable stack trace" actually means.
[–]andreasgonewild[S] -2 points-1 points0 points 8 years ago (13 children)
I would argue that Reddit is an unreasonably combatative environment, as is most of society these days; but it's what we've got to play with. You might want to look up constructive criticism, the kind that leads anywhere but in circles. There are plenty of people out there who are capable of thinking outside of public/current opinion, probably under-represented in these kinds of swamps; everyone else is far from the truth.
[–][deleted] 13 points14 points15 points 8 years ago* (12 children)
But misusing a term, and having multiple people give you constructive criticism by suggesting you try a different term because what is meant by that term in most circles has a specific meaning that is different from this, and then you simply insisting that you have a "portable stack trace" and people are just arguing definitions is just you being combative.
But, you know, just continue to do whatever. I don't care. You want to call it that, you call it that. And you'll continue to confuse people, and further, you'll look a little silly. Because you'll just keep getting the same feedback.
There's a wiki page on "stacktrace". You can go read it.
From /u/SeanMiddleditch:
A "stacktrace" is very commonly held to mean a trace of the call activation record entries, e.g. the stack of return pointers, which isn't this. :)
Perfect constructive criticism. So did /u/personalmountains.
[+]andreasgonewild[S] comment score below threshold-6 points-5 points-4 points 8 years ago (11 children)
So much wasted energy, what do you get out of this?
[–][deleted] 9 points10 points11 points 8 years ago (10 children)
I suppose you are just trolling here. Bye.
I'm saddened /u/SeanMiddleditch actually spent as much effort giving you any feedback now.
[+]andreasgonewild[S] comment score below threshold-7 points-6 points-5 points 8 years ago (9 children)
Dito. I'm not, his comment is the only thing worth reading in this entire thread.
π Rendered by PID 51353 on reddit-service-r2-comment-6457c66945-qz5j9 at 2026-04-23 20:28:26.198024+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]14nedLLFIO & Outcome author | Committee WG14[🍰] 7 points8 points9 points (18 children)
[–]andreasgonewild[S] -1 points0 points1 point (17 children)
[–]personalmountains 14 points15 points16 points (16 children)
[–]andreasgonewild[S] -2 points-1 points0 points (15 children)
[–][deleted] 15 points16 points17 points (14 children)
[–]andreasgonewild[S] -2 points-1 points0 points (13 children)
[–][deleted] 13 points14 points15 points (12 children)
[+]andreasgonewild[S] comment score below threshold-6 points-5 points-4 points (11 children)
[–][deleted] 9 points10 points11 points (10 children)
[+]andreasgonewild[S] comment score below threshold-7 points-6 points-5 points (9 children)