-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix transform_view::iterator::iterator_category when iter_reference_t is not an lvalue ref #637
Comments
A model of |
That's right, ouch...
Agreed. Is that equivalent to not defining nested |
So, this means that the specification of |
This is now LWG 3301. |
Since
iter_reference_t<transform_view::iterator>
can be a type that is not an lvalue-reference, the current wording on itsiterator_category
needs to be fixed.Proposed Resolution
Change [range.transform.iterator] p2 as follows:
Making
iterator_category
unconditionallyinput_iterator_tag
would be the safest fix, but I think the above fix works fine.(I'm planning to submit this to LWG in a few days.)
The text was updated successfully, but these errors were encountered: