Skip to content

Commit 160ce34

Browse files
committed
[Change] Retain use of std::forward<T>() anywhere except Windows.
1 parent 4d555ce commit 160ce34

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/bux/Logger.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ C_EntryLog::C_EntryLog(std::string_view scopeName, T_Fmt &&fmtStr, T_Args&&...ar
4848
{
4949
m_Id = getId();
5050
const auto fmtfmt = std::format("@{}@{}({}) {{{{\n", *m_Id, scopeName, fmtStr);
51+
#ifdef _WIN32
5152
stamp(u,LL_VERBOSE) << std::vformat(fmtfmt, std::make_format_args(args...));
53+
#else
54+
stamp(u,LL_VERBOSE) << std::vformat(fmtfmt, std::make_format_args(std::forward<T_Args>(args)...));
55+
#endif
5256
}
5357
deeper();
5458
}

0 commit comments

Comments
 (0)