mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fixes compilation on MSVC wrt. narrowing conversion from cstr-ptr to bool.
This commit is contained in:
parent
9e1b30be70
commit
cd3836f467
@ -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(), "");
|
||||
|
Loading…
Reference in New Issue
Block a user