Restore constraint on map formatter (#4326)

* Restore constraint on map formatter
* Remove unnecessary double parens
This commit is contained in:
timsong-cpp
2025-01-25 10:31:07 -06:00
committed by GitHub
parent f841ae61e2
commit cb6fdf2191
2 changed files with 13 additions and 4 deletions

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>;