Simplify parse_format_string

This commit is contained in:
Victor Zverovich
2024-09-01 09:34:38 -07:00
parent 985c3399d1
commit b310a0d48b
5 changed files with 39 additions and 71 deletions

View File

@@ -561,7 +561,7 @@ struct test_format_string_handler {
template <size_t N> constexpr bool parse_string(const char (&s)[N]) {
auto h = test_format_string_handler();
fmt::detail::parse_format_string<true>(fmt::string_view(s, N - 1), h);
fmt::detail::parse_format_string(fmt::string_view(s, N - 1), h);
return !h.error;
}