Fix FairLogger crash when used with C++23

This commit is contained in:
Florian Uhlig
2026-03-10 14:36:43 +01:00
committed by Alexey Rybalchenko
parent f4458f29f6
commit 5aee7970fb

View File

@@ -244,9 +244,10 @@ class Logger
bgWhite = 107 bgWhite = 107
}; };
static std::string startColor(Color color) { return fmt::format("\033[01;{}m", static_cast<int>(color)); } static std::string startColor(Color color) { return fmt::format(fmt::runtime("\033[01;{}m"), static_cast<int>(color)); }
static std::string endColor() { return "\033[0m"; } static std::string endColor() { return "\033[0m"; }
static std::string ColorOut(Color c, std::string_view s) { return fmt::format("\033[01;{}m{}\033[0m", static_cast<int>(c), s); } static std::string ColorOut(Color c, std::string_view s) { return fmt::format(fmt::runtime("\033[01;{}m{}\033[0m"), static_cast<int>(c), s); }
static std::string GetColoredSeverityString(Severity severity); static std::string GetColoredSeverityString(Severity severity);
static void SetConsoleSeverity(const Severity severity); static void SetConsoleSeverity(const Severity severity);