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
80
Upvotes
r/cpp • u/User_Deprecated • Jul 11 '26
View all comments
Show parent comment
1
u/Orlha Jul 12 '26
Uh, depends on the software I guess. Sometimes I’d rather have logs that match what actually happened. If we can’t log it (but wanted to) and we can cancel what was about to happen, then this is the way of making the logs match the facts (by cancelling the facts).