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
[range.split.view] Make require-constant a function #4423
Comments
I don't understand the point in trying to optimize the compile time of the definition of an exposition-only concept like this. The exact definition is not observable; the implementers are free to optimize it already. In any event, I don't think this is correct. Expressions in a requires-expression are not potentially-evaluated, so the consteval doesn't do anything. |
Definitely. I thought I'd make this more visible. And also get experts to tell me whether my variation of
Well, maybe I found a bug in these compilers that pass the tests. |
That test isn't testing whether |
This sounds very familiar. I must have repeated this mistake. Thank you, that makes sense. |
This implementation results in a single instantiation per type, rather than one specialization per value (do compilers cache these when the template's not defined?)
or (lambdas are not SCARY, are they?)
See https://godbolt.org/z/svc9Gx.
The text was updated successfully, but these errors were encountered: