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

Improve diagnostic to suggest fmt/ranges.h #4149

Open
marksantaniello opened this issue Sep 3, 2024 · 1 comment
Open

Improve diagnostic to suggest fmt/ranges.h #4149

marksantaniello opened this issue Sep 3, 2024 · 1 comment

Comments

@marksantaniello
Copy link
Contributor

The container support in fmt/ranges.h is extremely powerful, but I often forget that it exists. Could we have a specific error message in the event that we encounter an unformattable type that appears to be a range?

@vitaut
Copy link
Contributor

vitaut commented Sep 3, 2024

I think we could check if the type has begin / end and provide a better diagnostic in that case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants