以下代码只能捕获 int 类型异常。 int main() { try { throw 42; } catch (...) { cout << "Caught" << endl; } return 0; }