Fix windows comp issue

This commit is contained in:
Shawn Zhong 2023-04-29 07:55:07 -05:00
parent ea4929da32
commit b48505b057
2 changed files with 3 additions and 3 deletions

View File

@ -1365,8 +1365,8 @@ FMT_CONSTEXPR auto format_uint(Char* buffer, UInt value, int num_digits,
} }
template <unsigned BASE_BITS, typename Char, typename It, typename UInt> template <unsigned BASE_BITS, typename Char, typename It, typename UInt>
inline auto format_uint(It out, UInt value, int num_digits, bool upper = false) FMT_CONSTEXPR inline auto format_uint(It out, UInt value, int num_digits,
-> It { bool upper = false) -> It {
if (auto ptr = to_pointer<Char>(out, to_unsigned(num_digits))) { if (auto ptr = to_pointer<Char>(out, to_unsigned(num_digits))) {
format_uint<BASE_BITS>(ptr, value, num_digits, upper); format_uint<BASE_BITS>(ptr, value, num_digits, upper);
return out; return out;

View File

@ -317,7 +317,7 @@ template <size_t max_string_length, typename Char = char> struct test_string {
}; };
template <size_t max_string_length, typename Char = char, typename... Args> template <size_t max_string_length, typename Char = char, typename... Args>
consteval inline auto test_format(auto format, const Args&... args) { consteval auto test_format(auto format, const Args&... args) {
test_string<max_string_length, Char> string{}; test_string<max_string_length, Char> string{};
fmt::format_to(string.buffer, format, args...); fmt::format_to(string.buffer, format, args...);
return string; return string;