// Copyright 2019 Peter Dimov // Copyright Antony Polukhin, 2025-2026 // // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #include #include int main() { std::cout << boost::stacktrace::stacktrace() << std::endl; try { throw 42; } catch (...) { std::cout << "From current excption:\n" << boost::stacktrace::stacktrace::from_current_exception() << std::endl; } }