diff --git a/src/option_types.hh b/src/option_types.hh index 3b5799dd3..fd6b3b142 100644 --- a/src/option_types.hh +++ b/src/option_types.hh @@ -214,7 +214,9 @@ inline bool option_add(StronglyTypedNumber& opt, return val != 0; } -inline bool option_add(...) +struct WorstMatch { template WorstMatch(T&&) {} }; + +inline bool option_add(WorstMatch, StringView str) { throw runtime_error("no add operation supported for this option type"); }