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:
2.1m questions
2.1m answers
60 comments
57.0k users