...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::stacktrace::safe_dump_to — Writes into the provided file descriptor the current function call sequence if such operation is async signal safe.
// In header: <boost/stacktrace/safe_dump_to.hpp> std::size_t safe_dump_to(platform_specific_descriptor fd);