From Jason Turner
Watch on YouTube

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.

Resources

Tags