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
+1
View File
@@ -1569,6 +1569,7 @@ FMT_CONSTEXPR auto write(OutputIt out,
basic_string_view<type_identity_t<Char>> s,
const basic_format_specs<Char>& specs, locale_ref)
-> OutputIt {
check_string_type_spec(specs.type);
return write(out, s, specs);
}
template <typename Char, typename OutputIt>