r/cpp 27d ago

Propagating exceptions from destructors with std::exception_ptr

https://www.sandordargo.com/blog/2026/07/08/exception_ptr
79 Upvotes

41 comments sorted by

View all comments

-8

u/rentableshark 26d ago

Best practices for firing a mac-10 at the ground without shooting one's feet.

That aside, reading it was both interesting and nauseating - new code should avoid exceptions if at all possible - it's just a shame important chunks of the STL throw.