📌  相关文章
📜  异常处理禁用使用'-fexceptions'来启用 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:11.576000             🧑  作者: Mango

代码示例1
If you are using g++ simply add -fexceptions flag
If you are using CMake, add this line to your CMakeLists.txt:
target_compile_options (projectName PUBLIC -fexceptions)
Where 'projectName' is the name of your project