1

Topic: For what to disconnect exception handling?

Greetings to all! In a Visual Studio there is an option for exception handling switch-off: a C/C ++-> Code Generation-> Enable a C ++ exceptions Tell, please, for what it can be necessary to disconnect exceptions in a C ++ the code? And as it generally is possible, after all, for example the operator new or classes STL can throw out exceptions.

2

Re: For what to disconnect exception handling?

Hello, Maxim Rogozhin, you wrote: > Greetings to all! > In a Visual Studio there is an option for exception handling switch-off: a C/C ++-> Code Generation-> Enable a C ++ exceptions > Tell, please, for what it can be necessary to disconnect exceptions in a C ++ the code? And as it generally is possible, after all, for example the operator new or classes STL can throw out exceptions. There is a software development methodology on With ++ bar none.  Google  forbids  exceptions. All system  pluses can return error status code instead of exceptions.

3

Re: For what to disconnect exception handling?

Hello, Maxim Rogozhin, you wrote: > Tell, please, for what it can be necessary to disconnect exceptions in a C ++ the code? To use the code there where exception handling is not supported - for example, in a kernel on the raised priorities. > And as it generally is possible, after all, for example the operator new or classes STL can throw out exceptions. The operator new is only function which can be redefined. And functions of standard library nobody forces to use classes. Occasionally happens it is necessary to write something in "bare language", without exterior means generally (for example, the same output agent of interruption in a kernel). If not to disconnect interrupt handling, the compiler will add the special code in a prologue/epilogue of each function. This code not only that will be superfluous - it also does not allow to collect the executed unit for refers on  standard library, and those pull behind themselves support of the environment accessible only in the user mode.