Skip to content

Commit

Permalink
[Change] Retain use of std::forward<T>() anywhere except Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
buck-yeh committed Sep 28, 2024
1 parent 4d555ce commit 160ce34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/bux/Logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ C_EntryLog::C_EntryLog(std::string_view scopeName, T_Fmt &&fmtStr, T_Args&&...ar
{
m_Id = getId();
const auto fmtfmt = std::format("@{}@{}({}) {{{{\n", *m_Id, scopeName, fmtStr);
#ifdef _WIN32
stamp(u,LL_VERBOSE) << std::vformat(fmtfmt, std::make_format_args(args...));
#else
stamp(u,LL_VERBOSE) << std::vformat(fmtfmt, std::make_format_args(std::forward<T_Args>(args)...));
#endif
}
deeper();
}
Expand Down

0 comments on commit 160ce34

Please sign in to comment.