You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is some problem with mixing {fmt} calls with and without included "fmt/ostream.h" in the same compilation unit. Problem is detected only for GCC with c++20 mode, clang works perfectly fine.
Fmt version is both 8.0.1 and trunk.
The fix you made for this issue works for std::string and std::string_view, but what about custom types that have both operator<< and a custom formatter defined? We're having this exact same issue with our custom string type, but this fix doesn't help us.
I'd like to be able to disable fmt::detail::is_streamable<> for my custom type without having to include the ostream.h header in the file where we define our custom string class. We only use ostream.h in a few random places but out string class is central and is included everywhere.
Is that possible? I can open a new issue to track, as well, but since it's the same as this one I thought I'd start here.
There is some problem with mixing {fmt} calls with and without included "fmt/ostream.h" in the same compilation unit. Problem is detected only for GCC with c++20 mode, clang works perfectly fine.
Fmt version is both 8.0.1 and trunk.
https://godbolt.org/z/1GsbvYaG4
Outputs:
P.S. minimized version of test code is provided by @alexezeder
The text was updated successfully, but these errors were encountered: