diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 9adfec97..4ce41b84 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -364,10 +364,10 @@ protected: SPDLOG_TRY { #ifdef SPDLOG_USE_STD_FORMAT - memory_buf_t buf = std::vformat(fmt, std::make_format_args(std::forward(args)...)); + memory_buf_t buf = std::vformat(fmt, std::make_format_args(std::forward(args)...)); #else memory_buf_t buf; - fmt::detail::vformat_to(buf, fmt, fmt::make_format_args(std::forward(args)...)); + fmt::detail::vformat_to(buf, fmt, fmt::make_format_args(std::forward(args)...)); #endif details::log_msg log_msg(loc, name_, lvl, string_view_t(buf.data(), buf.size())); log_it_(log_msg, log_enabled, traceback_enabled); @@ -390,10 +390,10 @@ protected: // format to wmemory_buffer and convert to utf8 ; #ifdef SPDLOG_USE_STD_FORMAT - wmemory_buf_t wbuf = std::vformat(fmt, std::make_wformat_args(std::forward(args)...)); + wmemory_buf_t wbuf = std::vformat(fmt, std::make_wformat_args(std::forward(args)...)); #else wmemory_buf_t wbuf; - fmt::detail::vformat_to(wbuf, fmt, fmt::make_format_args(std::forward(args)...)); + fmt::detail::vformat_to(wbuf, fmt, fmt::make_format_args(std::forward(args)...)); #endif memory_buf_t buf; details::os::wstr_to_utf8buf(wstring_view_t(wbuf.data(), wbuf.size()), buf);