fmtlib / fmt

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

Failure to use format_as when <fmt/ranges.h> is included and operand is a range #4241

Closed nextsilicon-itay-bookstein closed 1 week ago

nextsilicon-itay-bookstein commented 1 week ago

Hi! Thanks for writing libfmt, it is an excellent library.

Been trying to upgrade to latest and ran into the following issue. Took a while to narrow it down, very baffling :) See https://clang.godbolt.org/z/93MnjTj5Y. There are two lines that are commented out. Observe the compiler error when the first line is commented-in, and observe that it goes away when the second line is commented-in.

vitaut commented 1 week ago

Same as #4202.

nextsilicon-itay-bookstein commented 6 days ago

Oh, huh, thanks.