-
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
format_as
fails when called with certain std::views
#3752
Comments
There is a simpler repro for the |
Understood, closing as duplicated! |
Let's keep this one open for tracking the issue. |
The |
The original repro compiles now: https://godbolt.org/z/ahh86ME13. Thanks @Arghnews for the fix! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction
Godbolt link
Summary
A
format_as
definition that returns astd::views::filter_view
, like so:does not compile:
Stack Overflow
I posted this to stack overflow originally, expecting some mistake of my own. People there suggested that this may be a bug with
fmt
itself, hence this issue. The explanation given there may prove to be of value.Notes
I expected the most recent commit (274ba26) may have helped, as it appears to be related to this type of issue. It is worth noting the error message changes when tested against
10.1.1
andtrunk
in godbolt, but both still do fail.The text was updated successfully, but these errors were encountered: