// SPDX-License-Identifier: MPL-2.0 // Copyright © 2021 Skyline Team and Contributors (https://github.com/skyline-emu/) #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 E& value, FormatContext& ctx) -> decltype(ctx.out()) { return fmt::formatter>::format(static_cast>(value), ctx); } }; #endif