Run Code | API | Code Wall | Misc | Feedback | Login | Theme | Privacy | Patreon |
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() |