mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[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:
@@ -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...));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user