Disable warning:

warning C4800: forcing value to bool 'true' or 'false' (performance warning)

for the node test, since it really doesn't make any sense in this context. (It's exactly what we intended with the "unspecified bool type".)
This commit is contained in:
Jesse Beder 2014-03-23 22:42:06 -05:00
parent 98a181c7a7
commit 7a68eaafd9

View File

@ -232,6 +232,7 @@ TEST(NodeTest, Bool) {
}
TEST(NodeTest, AutoBoolConversion) {
#pragma warning(disable:4800)
YAML::Node node;
node["foo"] = "bar";
EXPECT_TRUE(static_cast<bool>(node["foo"]));