From 0b0b09f4017f82d3e484a2285e712ae5b62139ad Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 23 Jul 2024 06:30:35 -0700 Subject: [PATCH] Constrain format_uint --- include/fmt/format.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 2860a078..71ae4ac7 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1342,7 +1342,8 @@ FMT_CONSTEXPR auto format_uint(Char* buffer, UInt value, int num_digits, return end; } -template +template ::value)> FMT_CONSTEXPR inline auto format_uint(OutputIt out, UInt value, int num_digits, bool upper = false) -> OutputIt { if (auto ptr = to_pointer(out, to_unsigned(num_digits))) {