mirror of
https://github.com/boostorg/stacktrace.git
synced 2026-01-28 19:52:08 +00:00
Compare commits
1 Commits
boost-1.85
...
boost-1.85
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
351b03d522 |
@@ -163,7 +163,7 @@ int main() {
|
||||
foo("test1");
|
||||
bar("test2");
|
||||
} catch (const std::exception& exc) {
|
||||
boost::stacktrace::stacktrace trace = std::stacktrace::from_current_exception(); // <---
|
||||
boost::stacktrace::stacktrace trace = boost::stacktrace::from_current_exception(); // <---
|
||||
std::cerr << "Caught exception: " << exc.what() << ", trace:\n" << trace;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user