bool uncaught_exception();
#include <exception>
#include <iostream>
#include <exception>
class TestUncaught {
public:
TestUncaught(int iIndex) : miIndex(iIndex) {}
~TestUncaught() {
using namespace std;
cout << miIndex << ". uncaught_exception() returns = " <<
uncaught_exception() << endl;
}
int miIndex;
};
int main() {
TestUncaught qTestOut(1);
try {
TestUncaught qTestIn(2);
// Just throw something
throw "XoaX.net";
} catch (...) {
}
return 0;
}
© 20072024 XoaX.net LLC. All rights reserved.