MCPcopy Create free account
hub / github.com/boostorg/stacktrace / main

Function main

test/cmake_install_test/main.cpp:10–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <iostream>
9
10int main()
11{
12 std::cout << boost::stacktrace::stacktrace() << std::endl;
13 try {
14 throw 42;
15 } catch (...) {
16 std::cout << "From current excption:\n" << boost::stacktrace::stacktrace::from_current_exception() << std::endl;
17 }
18}

Callers

nothing calls this directly

Calls 1

from_current_exceptionFunction · 0.85

Tested by

no test coverage detected