mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Fix msvc compile
This commit is contained in:
parent
2838c2c8a5
commit
8faabb4e3a
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user