mirror of
https://github.com/mikage-emu/mikage-dev.git
synced 2025-03-09 19:04:49 +01:00
Framework: Make fmt::formatter::format const
fmt 11 requires it.
This commit is contained in:
parent
68644fe6d5
commit
3f181d63b9
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue