r/cpp • u/Xadartt • Apr 16 '26
C++23 std::stacktrace: Never Debug Blind Again
https://medium.com/@sagar.necindia/c-23-std-stacktrace-never-debug-blind-again-6625924d520c
75
Upvotes
r/cpp • u/Xadartt • Apr 16 '26
View all comments
Show parent comment
2
u/jwakely libstdc++ tamer, LWG chair Apr 17 '26
But the premise of your comment is wrong: no compiler flags are needed. The
std::stacktraceclass gives you both the raw addresses, and access to the symbolic info, without needing compiler flags to choose between them.The standard allows you to not symbolize, and allows you to symbolize. No flags are needed. So (I hope) the feature isn't useless.