Commit 9c7b9ab7 authored by Dominik Charousset's avatar Dominik Charousset

Fix build on MSVC

parent 15f149bd
...@@ -134,11 +134,11 @@ struct fixture { ...@@ -134,11 +134,11 @@ struct fixture {
CAF_CHECK_EQUAL(foo_field.get(x), config_value(0)); CAF_CHECK_EQUAL(foo_field.get(x), config_value(0));
foo_field.set_default(x); foo_field.set_default(x);
CAF_CHECK_EQUAL(foo_field.get(x), config_value(42)); CAF_CHECK_EQUAL(foo_field.get(x), config_value(42));
CAF_CHECK(not foo_field.type_check(config_value(1.))); CAF_CHECK(!foo_field.type_check(config_value(1.)));
CAF_CHECK(foo_field.type_check(config_value(-1))); CAF_CHECK(foo_field.type_check(config_value(-1)));
foo_field.set(x, config_value(-1)); foo_field.set(x, config_value(-1));
CAF_CHECK_EQUAL(foo_field.get(x), config_value(-1)); CAF_CHECK_EQUAL(foo_field.get(x), config_value(-1));
CAF_CHECK(not foo_field.valid(x)); CAF_CHECK(!foo_field.valid(x));
string_view input = "123"; string_view input = "123";
string_parser_state ps{input.begin(), input.end()}; string_parser_state ps{input.begin(), input.end()};
foo_field.parse_cli(ps, x); foo_field.parse_cli(ps, x);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment