Compile error with initializer list on c++03

This commit is contained in:
Kohei Takahashi
2017-11-15 09:45:49 +09:00
committed by Vladimir Prus
parent ec3aded08e
commit 84d5b35261

View File

@@ -624,7 +624,7 @@ void test_empty_value_inner(options_description &opts, variables_map& vm) {
positional_options_description popts;
opts.add_options()("foo", value<uint32_t>()->value_name("<time>")->required());
popts.add("foo", 1);
vector<string> tokens{""};
vector<string> tokens(1, "");
parsed_options parsed = command_line_parser(tokens)
.style(command_line_style::default_style & ~command_line_style::allow_guessing)
.options(opts)