Commit c0521df9 authored by Dominik Charousset's avatar Dominik Charousset

Fix build on MSVC 14.11.25503

parent 6c2717a5
...@@ -161,7 +161,7 @@ auto config_option_set::parse(config_map& config, argument_iterator first, ...@@ -161,7 +161,7 @@ auto config_option_set::parse(config_map& config, argument_iterator first,
if (i->compare(0, 2, "--") == 0) { if (i->compare(0, 2, "--") == 0) {
// Long options use the syntax "--<name>=<value>" and consume only a // Long options use the syntax "--<name>=<value>" and consume only a
// single argument. // single argument.
static constexpr auto npos = std::string::npos; auto npos = std::string::npos;
auto assign_op = i->find('='); auto assign_op = i->find('=');
auto name = assign_op == npos ? i->substr(2) auto name = assign_op == npos ? i->substr(2)
: i->substr(2, assign_op - 2); : i->substr(2, assign_op - 2);
......
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