Summary
This episode explores the new std::stacktrace library coming in C++23, which provides runtime access to the current call stack. Jason demonstrates how to use the library to capture and print stack traces in different scenarios, examines how optimization levels affect the displayed information, and discusses the API details. He notes that while stack traces can be affected by compiler optimizations (like inlining), they provide valuable runtime information for debugging and logging purposes.
Related C++ Standard Sections
This episode covers topics found in these sections of the C++ standard:
-
[basic.string]40% match -
[bitset]40% match