I'm throwing exceptions that seem impossible to catch... see this code:
Gives me:Code:#include <iostream> using namespace std; int main() { cout << "Starting." << endl; try { cout << "In a hopeless situation." << endl; throw; } catch(...) { cout << "What a miserable little existance..." << endl; } cout << "My life as a program ends now." << endl; return 0; }Why? I thought catch(...) caught any exception thrown? Why miss a blank one? If I replace my throw; with throw 1; or anything else (provide something to be thrown) it will catch. I'm new to exceptions... but this code is almost directly off the flipcode tutorial. Where have I gone wrong?Code:Starting. In a hopeless situation. abnormal program termination