yaml-cpp
yaml-cpp copied to clipboard
Cannot compile with exceptions disabled
Hi guys.
I can not compile the latest version of yaml-cpp with -fno-exception in latest gcc and clang.
Should fix it?

Me neither.
The question is whether enabling exceptions just for this library gives a performance penalty... I had a look at the code, and there are just a few instances where exceptions are being thown, and only to signal that a node is not valid. So that could be disabled and then this library will compile just fine with exceptions disabled.
Ok, found it, This has already been taken care of in the following unmerged pull request, https://github.com/jbeder/yaml-cpp/pull/1146