simonlynen/yaml-cpp

MS Visual Studio 2012 Warning, forcing value to bool, in nodetests

Closed this issue · 0 comments

What steps will reproduce the problem?
1. Build yaml-cpp in MS Visual Studio 2012

What is the expected output? What do you see instead?
I expect no warnings when building yaml-cpp.  Instead, I get:
3>------ Build started: Project: run-tests, Configuration: Debug Win32 ------
...
3>..\..\test\new-api\nodetests.cpp(311): warning C4800: 
'YAML::detail::unspecified_bool_type' : forcing value to bool 'true' or 'false' 
(performance warning)

What version of the product are you using? On what operating system?
Version 0.5.1 on Windows 7, 32 bit build.

Please provide any additional information below.

Original issue reported on code.google.com by rbeas...@simquest.com on 29 Jan 2014 at 10:11