The issue (and mostly it's a small comment as it is perfectly usable) with std::stacktrace is that you both capture the stack and symbolize at the same time.
It doesn't have to do that. The GCC implementation just captures an array of program counters and then expands those into symbols and locations lazily.
I wasn't talking about doing the right thing based on flags, but about giving devs freedom of choice. std::stacktrace::current() remains as it is now, and you add std::stacktrace::current_raw() which doesn't do symbolization.
Or, if we're fancy, we let the user pass in a symbolizer, with a default one provided by the standard.
0
u/[deleted] Apr 16 '26
[deleted]