fix ambiguous formatter lookup for flat_set (#3561)

This commit is contained in:
5chmidti
2023-07-31 09:26:33 -07:00
committed by GitHub
parent eacd51c249
commit 8a4bec5cf5
2 changed files with 35 additions and 2 deletions
+5 -2
View File
@@ -668,8 +668,11 @@ template <typename Container> struct all {
} // namespace detail
template <typename T, typename Char>
struct formatter<T, Char,
enable_if_t<detail::is_container_adaptor_like<T>::value>>
struct formatter<
T, Char,
enable_if_t<conjunction<detail::is_container_adaptor_like<T>,
bool_constant<range_format_kind<T, Char>::value ==
range_format::disabled>>::value>>
: formatter<detail::all<typename T::container_type>, Char> {
using all = detail::all<typename T::container_type>;
template <typename FormatContext>