From b48505b0570cdaecd536a9c9714aae71a3fec6a3 Mon Sep 17 00:00:00 2001 From: Shawn Zhong Date: Sat, 29 Apr 2023 07:55:07 -0500 Subject: [PATCH] Fix windows comp issue --- include/fmt/format.h | 4 ++-- test/compile-test.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index d63b69dd..05a96ea6 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1365,8 +1365,8 @@ FMT_CONSTEXPR auto format_uint(Char* buffer, UInt value, int num_digits, } template -inline auto format_uint(It out, UInt value, int num_digits, bool upper = false) - -> It { +FMT_CONSTEXPR inline auto format_uint(It out, UInt value, int num_digits, + bool upper = false) -> It { if (auto ptr = to_pointer(out, to_unsigned(num_digits))) { format_uint(ptr, value, num_digits, upper); return out; diff --git a/test/compile-test.cc b/test/compile-test.cc index b2f41cab..a117c4f6 100644 --- a/test/compile-test.cc +++ b/test/compile-test.cc @@ -317,7 +317,7 @@ template struct test_string { }; template -consteval inline auto test_format(auto format, const Args&... args) { +consteval auto test_format(auto format, const Args&... args) { test_string string{}; fmt::format_to(string.buffer, format, args...); return string;