-
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
Specializing std::pair formatter leads to compile failures #3685
Comments
Fixed in 16cec4f, thanks for reporting. I recommend opening an LWG issue since the standard map formatter introduced in P2286 likely has the same problem. |
How does one file an LWG issue? |
Read How to submit an LWG issue |
Done, thanks. |
Unfortunately my report was rejected. I was too lazy to port it to <format>, but when I did I couldn't reproduce as none of the trunk stdlibs on godbolt support formatting maps [1], which is a prerequisite for a reproducer. [1] though llvm/llvm-project@b237354 mentions it's implemented |
I don't think we need a repro, the broken behavior is clear from the spec: https://eel.is/c++draft/format#range.fmtmap-2. |
If you want me to read standardese, then I want a raise |
This doesn't build, since map's formatter calls the pair formatter's set_brackets() and set_separator(), which don't exist.
set_brackets() and set_separator() are undocumented, so it's not reasonable to expect them to exist.
I think map's formatter should check to see if it's using the standard pair formatter before calling undocumented methods.
The text was updated successfully, but these errors were encountered: