Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by josefx

5 years ago

> You cannot easily stash the first exception and do some cleanup if that may itself throw an exception.

You can stash/rethrow exceptions since c++11 with an exception pointer if you really need to.

https://en.cppreference.com/w/cpp/error/exception_ptr

0 comments

josefx

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities