Merge remote-tracking branch 'Delapouite/too-many'
This commit is contained in:
commit
c859cb57dc
|
@ -197,7 +197,7 @@ void option_from_string(StringView str, std::tuple<Types...>& opt)
|
||||||
if (elems.size() != sizeof...(Types))
|
if (elems.size() != sizeof...(Types))
|
||||||
throw runtime_error(elems.size() < sizeof...(Types) ?
|
throw runtime_error(elems.size() < sizeof...(Types) ?
|
||||||
"not enough elements in tuple"
|
"not enough elements in tuple"
|
||||||
: "to many elements in tuple");
|
: "too many elements in tuple");
|
||||||
TupleOptionDetail<sizeof...(Types)-1, Types...>::from_string(elems, opt);
|
TupleOptionDetail<sizeof...(Types)-1, Types...>::from_string(elems, opt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user