From cdf1a3b5308b3e22fb18d6a240d6dae05fa1c1b5 Mon Sep 17 00:00:00 2001 From: Ivan Volnov <51086293+ivan-volnov@users.noreply.github.com> Date: Thu, 20 Jan 2022 02:26:09 +0800 Subject: [PATCH] Fix codecvt warning (#2408) (#2725) --- include/fmt/chrono.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 7828656b1b53..e3fad5b9d282 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -321,14 +321,13 @@ constexpr const size_t codecvt_result::max_size; template void write_codecvt(codecvt_result& out, string_view in_buf, const std::locale& loc) { - using codecvt = std::codecvt; #if FMT_CLANG_VERSION # pragma clang diagnostic push # pragma clang diagnostic ignored "-Wdeprecated" - auto& f = std::use_facet(loc); + auto& f = std::use_facet>(loc); # pragma clang diagnostic pop #else - auto& f = std::use_facet(loc); + auto& f = std::use_facet>(loc); #endif auto mb = std::mbstate_t(); const char* from_next = nullptr;