From d5c33e4f45b97c685ac6b9949917642876495d45 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 4 May 2025 15:23:48 -0700 Subject: [PATCH] Make template parameter order consistent --- include/fmt/ranges.h | 14 +++++++------- include/fmt/xchar.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/fmt/ranges.h b/include/fmt/ranges.h index e06c04da..e03f8392 100644 --- a/include/fmt/ranges.h +++ b/include/fmt/ranges.h @@ -668,7 +668,7 @@ struct formatter, Char> { } }; -template struct tuple_join_view : detail::view { +template struct tuple_join_view : detail::view { const Tuple& tuple; basic_string_view sep; @@ -683,15 +683,15 @@ template struct tuple_join_view : detail::view { # define FMT_TUPLE_JOIN_SPECIFIERS 0 #endif -template -struct formatter, Char, +template +struct formatter, Char, enable_if_t::value>> { FMT_CONSTEXPR auto parse(parse_context& ctx) -> const Char* { return do_parse(ctx, std::tuple_size()); } template - auto format(const tuple_join_view& value, + auto format(const tuple_join_view& value, FormatContext& ctx) const -> typename FormatContext::iterator { return do_format(value, ctx, std::tuple_size()); } @@ -723,14 +723,14 @@ struct formatter, Char, } template - auto do_format(const tuple_join_view&, FormatContext& ctx, + auto do_format(const tuple_join_view&, FormatContext& ctx, std::integral_constant) const -> typename FormatContext::iterator { return ctx.out(); } template - auto do_format(const tuple_join_view& value, FormatContext& ctx, + auto do_format(const tuple_join_view& value, FormatContext& ctx, std::integral_constant) const -> typename FormatContext::iterator { using std::get; @@ -823,7 +823,7 @@ auto join(Range&& r, string_view sep) */ template ::value)> FMT_CONSTEXPR auto join(const Tuple& tuple, string_view sep) - -> tuple_join_view { + -> tuple_join_view { return {tuple, sep}; } diff --git a/include/fmt/xchar.h b/include/fmt/xchar.h index 90994fff..598fea75 100644 --- a/include/fmt/xchar.h +++ b/include/fmt/xchar.h @@ -151,7 +151,7 @@ auto join(std::initializer_list list, wstring_view sep) template ::value)> auto join(const Tuple& tuple, basic_string_view sep) - -> tuple_join_view { + -> tuple_join_view { return {tuple, sep}; }