jbeder / yaml-cpp

A YAML parser and emitter in C++
MIT License
5.16k stars 1.86k forks source link

A small bug of adding yaml to Unreal4 project #595

Open ZetaRing opened 6 years ago

ZetaRing commented 6 years ago

Adding yaml lib into Unreal4 project will cause compile error. Caused by yaml-cpp\include\yaml-cpp\node\detail\iterator.h line 40, typedef typename iterator_base::value_type value_type; The solution is to delete this sentence.

The sentence mentioned above can pass compiling with not so strict compile settings. But if compiler add "/permissive-" option, this sentence will cause error. Unfortunately, Unreal4 project use a set of compile configurations that generated by the game engineer and it will add add "/permissive-" option. The user can not change some configurations in the GUI of visual studio or even see them.

For more details about "/permissive-" option, please refer to: https://docs.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance

tambry commented 6 years ago

I think this was fixed with https://github.com/jbeder/yaml-cpp/commit/124ae4760062e2f5827a6238c122ccbf66eb4e6e on 23rd April. Update your yaml-cpp?