// Copyright 2022 yuzu Emulator Project // Licensed under GPLv2 or any later version // Refer to the license.txt file included. #pragma once #include #include // adapted from https://github.com/fmtlib/fmt/issues/2704 // a generic formatter for enum classes #if FMT_VERSION >= 80100 template struct fmt::formatter, char>> : formatter> { template auto format(const T& value, FormatContext& ctx) -> decltype(ctx.out()) { return fmt::formatter>::format( static_cast>(value), ctx); } }; #endif