Merge pull request #9694 from ethereum/cxx-narrowing-fix-msvc

Fixes C++ narrowing conversion compile error
This commit is contained in:
chriseth authored and GitHub committed 2020-08-28 16:13:34 +02:00
commit 342c4e1a29
1 file changed
+1 -1
+1 -1
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(), "");