diff --git a/include/fmt/base.h b/include/fmt/base.h index 50600334..ef9fd57d 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -1090,11 +1090,11 @@ struct use_format_as< : std::true_type {}; template > -struct use_formatter - : bool_constant<(std::is_class::value || std::is_enum::value || - std::is_union::value || std::is_array::value) && - !has_to_string_view::value && !is_named_arg::value && - !use_format_as::value> {}; +using use_formatter = + bool_constant<(std::is_class::value || std::is_enum::value || + std::is_union::value || std::is_array::value) && + !has_to_string_view::value && !is_named_arg::value && + !use_format_as::value>; template > auto has_formatter_impl(T* p, buffered_context* ctx = nullptr)