Fix msvc compile

This commit is contained in:
gabime 2021-07-10 17:33:08 +03:00
parent 2838c2c8a5
commit 8faabb4e3a

View File

@ -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>(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>(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()));