From 4158104bbe67ea82f75f49e97c2de31ae6339f10 Mon Sep 17 00:00:00 2001 From: ivan-volnov <51086293+ivan-volnov@users.noreply.github.com> Date: Thu, 20 Jan 2022 00:58:13 +0800 Subject: [PATCH] Fix codecvt warning (#2408) --- 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;