r/cpp • u/User_Deprecated • Jul 11 '26
Propagating exceptions from destructors with std::exception_ptr
https://www.sandordargo.com/blog/2026/07/08/exception_ptr
79
Upvotes
r/cpp • u/User_Deprecated • Jul 11 '26
View all comments
Show parent comment
5
u/Som1Lse Jul 11 '26 edited Jul 11 '26
Something like this?
I actually quite like that pattern. It's probably the closest you can get to a good solution with current tools.