From 8faabb4e3af52ca275f3c01b968f1be0b5508a56 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 10 Jul 2021 17:33:08 +0300 Subject: [PATCH] Fix msvc compile --- include/spdlog/logger.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 9140e72e..81a018c0 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -238,10 +238,8 @@ public: SPDLOG_TRY { // format to wmemory_buffer and convert to utf8 - fmt::wmemory_buffer wbuf; - // fmt::format_to(std::back_inserter(wbuf), fmt, std::forward(args)...); - fmt::detail::vformat_to(wbuf, fmt::to_string_view(fmt), fmt::make_format_args(args...), {}); + fmt::format_to(std::back_inserter(wbuf), fmt, std::forward(args)...); memory_buf_t buf; details::os::wstr_to_utf8buf(wstring_view_t(wbuf.data(), wbuf.size()), buf); details::log_msg log_msg(loc, name_, lvl, string_view_t(buf.data(), buf.size()));