Framework: Make fmt::formatter::format const

fmt 11 requires it.
This commit is contained in:
Emmanuel Gil Peyrot 2024-12-29 19:04:32 +01:00
parent 68644fe6d5
commit 3f181d63b9

View file

@ -36,7 +36,7 @@ enum class GenericImageFormat {
template<> struct fmt::formatter<GenericImageFormat> : fmt::formatter<std::string_view> {
template<typename FormatContext>
auto format(GenericImageFormat format, FormatContext& ctx) -> decltype(ctx.out()) {
auto format(GenericImageFormat format, FormatContext& ctx) const -> decltype(ctx.out()) {
std::string_view name = std::invoke([format]() -> std::string_view {
switch (format) {
case GenericImageFormat::RGBA8: return "RGBA8";