Suppose the following code exists:
try {
}
catch (const std::exception & stdEx) {
cout << stdEx.what() << endl;
}
Questions:
1) I know that the code works for some forced exceptions, although std :: exception and boost :: exception do not belong to the same inheritance path. Why does it work?
2) Does this work for all forced exceptions? In other words, are there any examples where the boost :: exception handler can be launched that is below the std :: exception handler?
James source
share