Fixes compilation on MSVC wrt. narrowing conversion from cstr-ptr to bool.

This commit is contained in:
Christian Parpart 2020-08-28 14:46:29 +02:00
parent 9e1b30be70
commit cd3836f467

View File

@ -265,7 +265,7 @@ BOOST_AUTO_TEST_CASE(helper_bool_result)
BoolResult r7{true};
// Attention: this will implicitly convert to bool.
BoolResult r8{"true"};
BoolResult r8("true"); // We cannot use {} initializer here because this does not allow narrowing conversion (at least MSVC breaks)
r7.merge(r8, logical_and<bool>());
BOOST_REQUIRE_EQUAL(r7.get(), true);
BOOST_REQUIRE_EQUAL(r7.message(), "");