C++23 introduced the stacktrace library. A stacktrace is represented as a container, with each entry representing one entry in the stackstrace.
Each entry provides a description, source file and line number.
Debug information is not required (at least for GCC).
Click to open in Compiler Explorer.
Leave a comment