From 2b0ff62a7f966db268a9ce3052382d790fee7a01 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 24 Dec 2022 15:46:34 -0800 Subject: [PATCH] Remove unused template arg from format_string_checker --- include/fmt/core.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index f447814d..d0534730 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2948,8 +2948,7 @@ FMT_CONSTEXPR auto get_arg_index_by_name(basic_string_view name) -> int { return invalid_arg_index; } -template -class format_string_checker { +template class format_string_checker { private: using parse_context_type = compile_parse_context; static constexpr int num_args = sizeof...(Args); @@ -3019,8 +3018,8 @@ template ::value)> void check_format_string(S format_str) { FMT_CONSTEXPR auto s = basic_string_view(format_str); - using checker = format_string_checker...>; + using checker = + format_string_checker...>; FMT_CONSTEXPR bool invalid_format = (parse_format_string(s, checker(s)), true); ignore_unused(invalid_format); @@ -3171,8 +3170,8 @@ template class basic_format_string { #ifdef FMT_HAS_CONSTEVAL if constexpr (detail::count_named_args() == detail::count_statically_named_args()) { - using checker = detail::format_string_checker...>; + using checker = + detail::format_string_checker...>; detail::parse_format_string(str_, checker(s)); } #else