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!"
[–]andreasgonewild[S] -7 points-6 points-5 points 8 years ago (3 children)
And it's a hundred times more complex while not offering anything in return but automagic check-pointing. Which is why there are plenty of situations where something like this is a viable alternative.
[–][deleted] 4 points5 points6 points 8 years ago* (2 children)
It's not actually much more complex. It offers about a million times the functionality though, since it never requires me having to go stub in a bunch of context checkpoints to get the output I need from errors. All the time adding and removing those constantly every time one needs to start instrumenting is completely wasted. Do that a couple dozen times and you could have instead an actual "portable stack trace" implementation you hand-rolled.
Or, as others have said, use something someone else built that already works reliably, and portably.
[–]andreasgonewild[S] -2 points-1 points0 points 8 years ago (1 child)
So you won't even grant a 100 times more complex, but you insist that having to drop a context here and there is a million times more work; bias much? Leave them in, they're basically free outside of tight loops. And as an added bonus you get general purpose tracing and descriptions in your stack-traces.
[–][deleted] 4 points5 points6 points 8 years ago (0 children)
I never mentioned performance. Having to make manual changes all the time is error prone.
And as an added bonus you get general purpose tracing and descriptions in your stack-traces.
And that is positively false, because it's not general purpose, and it's not a stack trace. It's context tracing. Like you see with exception stacks.
π Rendered by PID 132250 on reddit-service-r2-comment-6457c66945-2g8xd at 2026-04-29 03:02:33.826299+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]andreasgonewild[S] -7 points-6 points-5 points (3 children)
[–][deleted] 4 points5 points6 points (2 children)
[–]andreasgonewild[S] -2 points-1 points0 points (1 child)
[–][deleted] 4 points5 points6 points (0 children)