
If you want to write more portable code, using structured exception handling in a C++ program is not recommended. However, you may sometimes want to mix C and C++ source code, and need some facility for handling both kinds of exceptions. Because a structured exception handler has no concept of objects or typed exceptions, it cannot handle exceptions thrown by C++ code; however, C++ catch handlers can handle C exceptions. As such, C++ exception handling syntax (try, throw, catch) is not acce..
|