📅  最后修改于: 2022-03-11 14:58:11.576000             🧑  作者: Mango
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