https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119861

--- Comment #1 from 康桓瑋 <hewillk at gmail dot com> ---
..which should not:

#include <format>

struct Map {
  std::pair<int, int>* begin();
  std::pair<int, int>* end();
};

template<>
constexpr auto std::format_kind<Map> = std::range_format::map;

int main() {
  std::formatter<Map> fmt;
  fmt.set_separator("?");
  fmt.set_brackets({}, {});
}

https://godbolt.org/z/xWxvfhqYK

Reply via email to