yaml-cpp icon indicating copy to clipboard operation
yaml-cpp copied to clipboard

Cannot compile with exceptions disabled

Open fansehep opened this issue 3 years ago • 1 comments

Hi guys. I can not compile the latest version of yaml-cpp with -fno-exception in latest gcc and clang. Should fix it? 2022-10-28_13-10-1666936765

fansehep avatar Oct 28 '22 06:10 fansehep

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

OndrejPopp avatar May 11 '23 17:05 OndrejPopp