Restore constraint on map formatter (#4326)

* Restore constraint on map formatter
* Remove unnecessary double parens
This commit is contained in:
timsong-cpp authored and GitHub committed 2025-01-25 08:31:07 -08:00
1 parent f841ae61e2
commit cb6fdf2191
2 files changed
+13 -4

No files matched your search

+3 -1
View File
@@ -527,7 +527,9 @@ struct formatter<
template <typename R, typename Char>
struct formatter<
R, Char,
enable_if_t<range_format_kind<R, Char>::value == range_format::map>> {
enable_if_t<conjunction<
bool_constant<range_format_kind<R, Char>::value == range_format::map>,
detail::is_formattable_delayed<R, Char>>::value>> {
private:
using map_type = detail::maybe_const_range<R>;
using element_type = detail::uncvref_type<map_type>;