You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**See [GPMueller/trace](https://github.com/GPMueller/trace) for a proper exception backtracing library.**
7
+
6
8
This MWE shows how [`std::nested_exception`](http://en.cppreference.com/w/cpp/error/nested_exception) and [`std::throw_with_nested`](http://en.cppreference.com/w/cpp/error/throw_with_nested) can be applied in order to not lose information while propagating
7
9
an original `std::exception` upwards through a chain of function calls and create a **backtrace** without any overhead (compare e.g. logging of debug messages).
8
10
This avoids much of the need for any debugging and provides a way of ensuring that a library does not crash ungracefully.
0 commit comments