Run Code | Code Wall | Users | Misc | Feedback | About | Login | Theme | Privacy |
std::current_exception makes a copyNow throwing Widget... constructing the exception object of type Widget on the stack Found the catch handler. Now calling current_exception... copying the Widget object from the stack to the heap destroying a Widget object Now setting ex to nullptr... destroying a Widget object Now exiting main() |