return matrix.back().back(); | return matrix.back().back(); | ||||
} | } | ||||
bool lm_reject_dym::operator()(std::string_view context, | |||||
std::string_view key, | |||||
std::string_view) const { | |||||
assert(candidates.size() > 0); | |||||
throw_user_error<errc::invalid_config_key>("{}: Unknown key '{}' (Did you meann '{}'?)", | |||||
context, | |||||
key, | |||||
*did_you_mean(key, candidates)); | |||||
} |
return did_you_mean(given, ranges::views::all(strings)); | return did_you_mean(given, ranges::views::all(strings)); | ||||
} | } | ||||
struct lm_reject_dym { | |||||
std::initializer_list<std::string_view> candidates; | |||||
[[noreturn]] bool | |||||
operator()(std::string_view context, std::string_view key, std::string_view value) const; | |||||
}; | |||||
} // namespace dds | } // namespace dds |