Add missing presentation type checks for std::string (#2402)

This commit is contained in:
Victor Zverovich
2021-07-02 07:51:04 -07:00
parent 889bbf27a2
commit 1d7384530e
3 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -2577,8 +2577,8 @@ FMT_CONSTEXPR auto check_cstring_type_spec(Char spec, ErrorHandler&& eh = {})
return false;
}
template <typename Char, typename ErrorHandler>
FMT_CONSTEXPR void check_string_type_spec(Char spec, ErrorHandler&& eh) {
template <typename Char, typename ErrorHandler = error_handler>
FMT_CONSTEXPR void check_string_type_spec(Char spec, ErrorHandler&& eh = {}) {
if (spec != 0 && spec != 's') eh.on_error("invalid type specifier");
}