[wpiutil] Upgrade to fmt 9.0.0 (#4337)

fmt removed fmt::make_args_checked since it's no longer needed for
constexpr format string checks.

fmt deprecated implicit conversions from enums to integers in format
arguments, so I added explicit static casts.
This commit is contained in:
Tyler Veness
2022-08-16 15:35:26 -07:00
committed by GitHub
parent 340465c929
commit 151dabb2af
38 changed files with 3522 additions and 3364 deletions

View File

@@ -49,8 +49,7 @@ class Logger {
void Log(unsigned int level, const char* file, unsigned int line,
const S& format, Args&&... args) {
if (m_func && level >= m_min_level) {
LogV(level, file, line, format,
fmt::make_args_checked<Args...>(format, args...));
LogV(level, file, line, format, fmt::make_format_args(args...));
}
}

View File

@@ -22,7 +22,7 @@ inline void vprint(wpi::raw_ostream& os, string_view format_str,
*/
template <typename S, typename... Args>
void print(wpi::raw_ostream& os, const S& format_str, Args&&... args) {
vprint(os, format_str, fmt::make_args_checked<Args...>(format_str, args...));
vprint(os, format_str, fmt::make_format_args(args...));
}
FMT_END_NAMESPACE