diff --git a/include/fmt/core.h b/include/fmt/core.h index 53026d47557e..16cd51710838 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2121,8 +2121,7 @@ struct dynamic_format_specs : format_specs { }; // Converts a character to ASCII. Returns '\0' on conversion failure. -template ::value || - std::is_enum::value)> +template ::value)> constexpr auto to_ascii(Char c) -> char { return c <= 0xff ? static_cast(c) : '\0'; }