...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::this_thread::set_capture_stacktraces_at_throw — Invoking the function with the enable parameter equal to true
enables capturing of stacktraces by the current thread of execution at exception object construction if the boost_stacktrace_from_exception
library is linked to the current binary; disables otherwise.
// In header: <boost/stacktrace/this_thread.hpp> void set_capture_stacktraces_at_throw(bool enable = true);