Remove unnecessary inheritance

This commit is contained in:
Victor Zverovich
2024-09-17 19:31:55 -07:00
parent 2f1424be90
commit 8b024662d4

View File

@ -1090,11 +1090,11 @@ struct use_format_as<
: std::true_type {};
template <typename T, typename U = remove_const_t<T>>
struct use_formatter
: bool_constant<(std::is_class<T>::value || std::is_enum<T>::value ||
std::is_union<T>::value || std::is_array<T>::value) &&
!has_to_string_view<T>::value && !is_named_arg<T>::value &&
!use_format_as<T>::value> {};
using use_formatter =
bool_constant<(std::is_class<T>::value || std::is_enum<T>::value ||
std::is_union<T>::value || std::is_array<T>::value) &&
!has_to_string_view<T>::value && !is_named_arg<T>::value &&
!use_format_as<T>::value>;
template <typename Char, typename T, typename U = remove_const_t<T>>
auto has_formatter_impl(T* p, buffered_context<Char>* ctx = nullptr)