-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ostream support is broken #3318
Comments
There were multiple problems with automatic ostream insertion operator discovery and it was disabled in v9. Please see the docs on how to provide an explicit ostream-based formatter: https://fmt.dev/latest/api.html#ostream-api. Note that you shouldn't normally overload |
Still glad to know that there is a solution (and the fmt/ranges.h option, which I had missed so far). Thanks. |
This is the biggest issue with this library I have found. When everyone is so used overloading the |
Given this test code:
It works with GCC 9/10/11 (both C++17 and C++20/C++2a modes) and fmt v8.1.1 (as well as many earlier versions).
From fmt v9.0.0 (up to head in master), the code above always fail.
Also, even with fmt v8.1.1, I am not able to make it work with GCC 12 or Clang.
The text was updated successfully, but these errors were encountered: