diff --git a/src/option_types.hh b/src/option_types.hh index 7d062deb..c6798ef5 100644 --- a/src/option_types.hh +++ b/src/option_types.hh @@ -350,6 +350,9 @@ inline String option_to_string(const PrefixedList& opt, Quoting quoting) template inline PrefixedList option_from_strings(Meta::Type>, ConstArrayView strs) { + if (strs.empty()) + return {{}, {}}; + return {option_from_string(Meta::Type

{}, strs[0]), option_from_strings(Meta::Type>{}, strs.subrange(1))}; }