[upstream_utils] Upgrade to fmt 11.1.3 (#7629)

This commit is contained in:
Tyler Veness
2025-01-30 12:35:33 -08:00
committed by GitHub
parent 48ce2dcc8d
commit 7533b323d1
9 changed files with 102 additions and 71 deletions

View File

@@ -261,7 +261,7 @@ namespace detail {
using utc_clock = std::chrono::utc_clock;
#else
struct utc_clock {
void to_sys();
template <typename T> void to_sys(T);
};
#endif
@@ -364,7 +364,7 @@ void write_codecvt(codecvt_result<CodeUnit>& out, string_view in,
template <typename OutputIt>
auto write_encoded_tm_str(OutputIt out, string_view in, const std::locale& loc)
-> OutputIt {
if (detail::use_utf8 && loc != get_classic_locale()) {
if (const_check(detail::use_utf8) && loc != get_classic_locale()) {
// char16_t and char32_t codecvts are broken in MSVC (linkage errors) and
// gcc-4.
#if FMT_MSC_VERSION != 0 || \