Make all custom fmt::formatter's format functions const

fmt 8.0.0 requires this.
This commit is contained in:
Pokechu22
2022-01-12 17:16:29 -08:00
parent cc592ab814
commit 78e43a4404
11 changed files with 63 additions and 62 deletions

View File

@ -62,7 +62,7 @@ public:
}
template <typename FormatContext>
auto format(const T& e, FormatContext& ctx)
auto format(const T& e, FormatContext& ctx) const
{
const auto value_s = static_cast<std::underlying_type_t<T>>(e); // Possibly signed
const auto value_u = static_cast<std::make_unsigned_t<T>>(value_s); // Always unsigned