Fix conversion from fmt::memory_buffer to fmt::string_view

This commit is contained in:
Charles Milette 2022-04-21 23:38:12 -04:00
parent 56adf64ccf
commit c203b4df8e
No known key found for this signature in database
GPG Key ID: 1A5AE81377AD973A

View File

@ -13,7 +13,7 @@ using filename_memory_buf_t = fmt::basic_memory_buffer<spdlog::filename_t::value
std::string filename_buf_to_utf8string(const filename_memory_buf_t &w)
{
spdlog::memory_buf_t buf;
spdlog::details::os::wstr_to_utf8buf(w, buf);
spdlog::details::os::wstr_to_utf8buf(spdlog::wstring_view_t(w.data(), w.size()), buf);
return spdlog::details::fmt_helper::to_string(buf);
}
#else