Skip to content

Commit 84d5b35

Browse files
Flastvprus
authored andcommitted
Compile error with initializer list on c++03
1 parent ec3aded commit 84d5b35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/exception_txt_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ void test_empty_value_inner(options_description &opts, variables_map& vm) {
624624
positional_options_description popts;
625625
opts.add_options()("foo", value<uint32_t>()->value_name("<time>")->required());
626626
popts.add("foo", 1);
627-
vector<string> tokens{""};
627+
vector<string> tokens(1, "");
628628
parsed_options parsed = command_line_parser(tokens)
629629
.style(command_line_style::default_style & ~command_line_style::allow_guessing)
630630
.options(opts)

0 commit comments

Comments
 (0)