fmt: use make_format_args instead of make_args_checked

make_args_checked is deprecated
see https://github.com/fmtlib/fmt/pull/2760 and the linked comment
This commit is contained in:
Shawn Hoffman
2022-05-10 16:39:12 -07:00
parent 56626f73bf
commit fa17153ebc
2 changed files with 3 additions and 9 deletions

View File

@ -94,8 +94,7 @@ void GenericLogFmt(LogLevel level, LogType type, const char* file, int line, con
static_assert(NumFields == sizeof...(args),
"Unexpected number of replacement fields in format string; did you pass too few or "
"too many arguments?");
GenericLogFmtImpl(level, type, file, line, format,
fmt::make_args_checked<Args...>(format, args...));
GenericLogFmtImpl(level, type, file, line, format, fmt::make_format_args(args...));
}
void GenericLog(LogLevel level, LogType type, const char* file, int line, const char* fmt, ...)