From 8b024662d4add88c5c093b56661f669afd13b5c1 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 17 Sep 2024 19:31:55 -0700 Subject: [PATCH] Remove unnecessary inheritance --- include/fmt/base.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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)