From 0c15787d8ea5c3513a3a170db09dc6ff04e2857b Mon Sep 17 00:00:00 2001 From: Barry Revzin Date: Wed, 27 Jul 2022 18:41:07 -0500 Subject: [PATCH] Other PR comments. --- include/fmt/ranges.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fmt/ranges.h b/include/fmt/ranges.h index eed84a12..2e5a8e68 100644 --- a/include/fmt/ranges.h +++ b/include/fmt/ranges.h @@ -310,14 +310,14 @@ OutputIt write_range_entry(OutputIt out, const Arg& v) { } template struct string_literal { - static constexpr CharT value[] = {C...}; + static constexpr CharT value[sizeof...(C)] = {C...}; constexpr operator basic_string_view() const { return {value, sizeof...(C)}; } }; template -constexpr CharT string_literal::value[]; +constexpr CharT string_literal::value[sizeof...(C)]; } // namespace detail @@ -447,7 +447,7 @@ struct range_formatter< } template - FMT_CONSTEXPR static void maybe_set_debug_format(U&, long) {} + FMT_CONSTEXPR static void maybe_set_debug_format(U&, ...) {} FMT_CONSTEXPR void maybe_set_debug_format() { maybe_set_debug_format(underlying_, 0);