diff options
| -rw-r--r-- | src/option_types.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/option_types.hh b/src/option_types.hh index 3b5799dd..fd6b3b14 100644 --- a/src/option_types.hh +++ b/src/option_types.hh @@ -214,7 +214,9 @@ inline bool option_add(StronglyTypedNumber<RealType, ValueType>& opt, return val != 0; } -inline bool option_add(...) +struct WorstMatch { template<typename T> WorstMatch(T&&) {} }; + +inline bool option_add(WorstMatch, StringView str) { throw runtime_error("no add operation supported for this option type"); } |
