Can I disable exceptions in STL?

后端 未结 3 1068
慢半拍i
慢半拍i 2020-12-08 20:48

I want to disable exceptions in my C++ aplication, compiled under MSVC. I hve switched the option Enable C++ exceptions to NO, but I get warnings telling me to use the optio

3条回答
  •  被撕碎了的回忆
    2020-12-08 21:35

    The type id is to do with run-time type identification. You may want to try turning RTTI off as well.

    However, certain parts of the C++ Standard Library are specified to throw exceptions. If you disable them you are sailing into the murky waters of "undefined behaviour".

提交回复
热议问题