...one of the most highly
regarded and expertly designed C++ library projects in the
world. — Herb Sutter and Andrei
boost::stacktrace::safe_dump_to — Opens a file and rewrites its content with current function call sequence if such operations are async signal safe.
// In header: <boost/stacktrace/safe_dump_to.hpp> std::size_t safe_dump_to(const char * file);