Fix fmt::vformat_to when SPDLOG_WCHAR_TO_UTF8_SUPPORT is defined

This commit is contained in:
gabime 2022-10-31 22:56:29 +02:00
parent b59b4a2b45
commit fdb1f5926e

View File

@ -398,7 +398,7 @@ protected:
fmt_lib::vformat_to(
std::back_inserter(wbuf), fmt, fmt_lib::make_format_args<fmt_lib::wformat_context>(std::forward<Args>(args)...));
# else
fmt::vformat_to(fmt::appender(wbuf), fmt, fmt::make_format_args(std::forward<Args>(args)...));
fmt::vformat_to(fmt::appender(wbuf), fmt, mt::make_format_args<fmt::wformat_context>(std::forward<Args>(args)...));
# endif
memory_buf_t buf;