What's the easiest way to catch an overflow exception in C++?
For example, when I'm writing something like
int a = 10000, b = 100000;
int c = a * b;
or (optionally)
std::cout << a * b;
I'd like to catch an exception (or notification). How to do so? Maybe there is any native solution for GNU C++, isn't there?