fmtlib / fmt

A modern formatting library
https://fmt.dev
Other
20.75k stars 2.5k forks source link

Improve diagnostic to suggest fmt/ranges.h #4149

Open marksantaniello opened 2 months ago

marksantaniello commented 2 months ago

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 commented 2 months ago

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