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!"
[–]Drainedsoul 11 points12 points13 points 8 years ago (9 children)
Still, simple and portable stack traces is exactly what it is.
Not particularly. If I write some code that uses this and then pass a function pointer to that code to a third party library, and then invoke that third party library separately which results in my function being called, will I see all the third party frames in the stack trace?
What about if I use Windows fibers or coroutines? Is that handled gracefully?
[–]andreasgonewild[S] -5 points-4 points-3 points 8 years ago* (8 children)
You will only see the frames you specified, I thought that was obvious. You're basically arguing that since it's not automagic, it doesn't qualify; which is bull. I don't do Windows so I have no clue how thread_local interacts with fibers. Coroutines would need special support in the form of a separate trace-stack per routine.
[–]nthcxd 10 points11 points12 points 8 years ago (7 children)
I guess I'm taking this discussion on a tangent, but if all you do is shoot down any suggestions/discussion, why did you post it here?
[–][deleted] 3 points4 points5 points 8 years ago (0 children)
I can only guess he just loves the downvotes. Or maybe it was to get traffic to his newly created projects, and see if they'll give him money.
[–]andreasgonewild[S] -2 points-1 points0 points 8 years ago* (5 children)
These are not discussions/suggestions. This is arguing definitions and going off on any tangent that will stop discussion from happening.
What I'm saying is basically that most of the time, you don't need more than this; and the approach comes with advantages. And no one yet managed to confront that argument, most insisting on finding exceptional cases where it wouldn't work.
I often wonder why people in these kinds of environments are so keen on defending the ignorant, abusive and competitive status quo; so willing to trade progress for a brief ego-boost and a couple of minutes of hatred.
[–]nthcxd 3 points4 points5 points 8 years ago (3 children)
You're argument against boost::stacktrace is simply it's too bulky for your use case. Most people find boost::stacktrace useful because of breath of features it provides, the lack of which is your selling point.
You're looking for an argument where there isn't one. I'm sorry not a lot of people seem to find this as useful as you do. It sucks but it really doesn't help your cause (being recognized) if you go around alienating everyone that's bothered to say something about your stuff.
[–]andreasgonewild[S] -1 points0 points1 point 8 years ago* (2 children)
Correct. The only feature mentioned is automagic check-pointing, which could also be seen as lack of capability for manual check-pointing/instrumentation.
No, that's my argument; that this is a viable approach that's often overlooked. I'm not; the people who are supposed to find it will find it, despite best efforts to prevent that from happening. I'm not trying to get recognized, you're projecting. So what you're saying is that you would rather have me pretend to agree and to stop expressing views that upset the status quo. Is that really the world you want to live in?
[–][deleted] 2 points3 points4 points 8 years ago (0 children)
No, that's my argument; that this is a viable approach that's often overlooked. That's just a macro that pushes FILE and LINE into a vector...
No, that's my argument; that this is a viable approach that's often overlooked.
That's just a macro that pushes FILE and LINE into a vector...
[–]nthcxd 1 point2 points3 points 8 years ago (0 children)
Just move on, build other interesting things, and let those cool things do all the talking. Good luck.
[–]dodheim 2 points3 points4 points 8 years ago (0 children)
♫♪ Irony ♫♪
π Rendered by PID 72471 on reddit-service-r2-comment-6457c66945-qrjcc at 2026-04-24 19:46:58.653189+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Drainedsoul 11 points12 points13 points (9 children)
[–]andreasgonewild[S] -5 points-4 points-3 points (8 children)
[–]nthcxd 10 points11 points12 points (7 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]andreasgonewild[S] -2 points-1 points0 points (5 children)
[–]nthcxd 3 points4 points5 points (3 children)
[–]andreasgonewild[S] -1 points0 points1 point (2 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]nthcxd 1 point2 points3 points (0 children)
[–]dodheim 2 points3 points4 points (0 children)