diff --git a/include/fmt/core.h b/include/fmt/core.h index 2f3cc61f..6414dfff 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2922,9 +2922,9 @@ FMT_INLINE void check_format_string(const S&) { template ::value)> void check_format_string(S format_str) { - FMT_CONSTEXPR auto s = basic_string_view(format_str); - using checker = - format_string_checker...>; + using char_t = typename S::char_type; + FMT_CONSTEXPR auto s = basic_string_view(format_str); + using checker = format_string_checker...>; FMT_CONSTEXPR bool invalid_format = (parse_format_string(s, checker(s)), true); ignore_unused(invalid_format);