Propagating exceptions from destructors with std::exception_ptr 0 ▲ Sandor Dargo's Blog 1 hour ago · Tech · hide · 0 comments A few weeks ago, I wrote about what happens when a destructor actually throws and why it is a dangerous idea. One of the readers commented that he was once in a situation where he had to propagate an exception from a destructor. But as a destructor cannot safely throw and it also cannot return any value, he needed a better solution. And that solution was std::exception_ptr. Let’s look into wh... No comments yet. Log in to reply on the Fediverse. Comments will appear here.