Programmatically determine whether exceptions are enabled

Viewed 2668

Most C++ compilers allow for exceptions to be disabled. Is there a way to determine it from the code without using compiler-specific preprocessor macros, such as _CPPUNWIND for MSVC? Ideally at compile time.

3 Answers
Related