mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-21 03:12:41 +08:00
Fix conversion from fmt::memory_buffer to fmt::string_view
This commit is contained in:
parent
56adf64ccf
commit
c203b4df8e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user