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
2
u/kammce WG21 | πΊπ² NB | Boost | Exceptions Jul 11 '26
Neat. I hadn't considering passing an empty exception_ptr to be filled at destruction. Not sure when I'll need such a thing, but an interesting technique none the less.