In C++, I'm trying to catch all types of exceptions in one catch (like catch(Exception) in C#). How is it done? And what's more, how can one catch divide-by-zero exceptions?
catch(Exception)
catch (...) { // Handle exceptions not covered. }
Important considerations:
1.4m articles
1.4m replys
5 comments
57.0k users