diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 1b6ab47c..452b1a6b 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -241,7 +241,7 @@ public: // format to wmemory_buffer and convert to utf8 fmt::wmemory_buffer wbuf; - fmt::format_to(std::back_inserter(wbuf), fmt::runtime(fmt), std::forward(args)...); + fmt::format_to(std::back_inserter(wbuf), fmt, std::forward(args)...); memory_buf_t buf; details::os::wstr_to_utf8buf(wstring_view_t(wbuf.data(), wbuf.size()), buf);