Skip to content

Commit

Permalink
Remov foreward to standard vformat_to
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime authored May 30, 2023
1 parent d1eb681 commit 31cf79a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/spdlog/logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ class SPDLOG_API logger
{
memory_buf_t buf;
#ifdef SPDLOG_USE_STD_FORMAT
fmt_lib::vformat_to(std::back_inserter(buf), fmt, fmt_lib::make_format_args(std::forward<Args>(args)...));
fmt_lib::vformat_to(std::back_inserter(buf), fmt, fmt_lib::make_format_args(args...));
#else
fmt::vformat_to(fmt::appender(buf), fmt, fmt::make_format_args(args...));
#endif
Expand All @@ -395,7 +395,7 @@ class SPDLOG_API logger
// format to wmemory_buffer and convert to utf8
wmemory_buf_t wbuf;
fmt_lib::vformat_to(
std::back_inserter(wbuf), fmt, fmt_lib::make_format_args<fmt_lib::wformat_context>(std::forward<Args>(args)...));
std::back_inserter(wbuf), fmt, fmt_lib::make_format_args<fmt_lib::wformat_context>(args...));

memory_buf_t buf;
details::os::wstr_to_utf8buf(wstring_view_t(wbuf.data(), wbuf.size()), buf);
Expand Down

0 comments on commit 31cf79a

Please sign in to comment.