Skip to content
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

Ambiguous partial specialization when formatting boost flat_set since fmt v10.0.0 #3556

Closed
5chmidti opened this issue Jul 27, 2023 · 1 comment · Fixed by #3561
Closed

Ambiguous partial specialization when formatting boost flat_set since fmt v10.0.0 #3556

5chmidti opened this issue Jul 27, 2023 · 1 comment · Fixed by #3561

Comments

@5chmidti
Copy link
Contributor

5chmidti commented Jul 27, 2023

When trying to format a flat_set from boost, an ambiguous lookup for formatter happens.

Reproducer:
https://godbolt.org/z/dhqnMf755
boost version 1.82.0 (changing it to some random previous versions did not change something)
Clang 16.0.0 with fmt trunk
gcc 13.2 with fmt trunk
gcc 13.2 with fmt 9.1.0 as a proof it worked with fmt 9.1.0

The ambiguous formatters are in lines

struct formatter<

and
struct formatter<T, Char,

@vitaut
Copy link
Contributor

vitaut commented Jul 28, 2023

I think we should add range_format_kind<R, Char>::value == range_format::disabled in the second specialization. A PR is welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants