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.
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