Skip to content
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

LWG-3798 Rvalue reference and iterator_category #3228

Closed
StephanTLavavej opened this issue Nov 15, 2022 · 1 comment · Fixed by #3359
Closed

LWG-3798 Rvalue reference and iterator_category #3228

StephanTLavavej opened this issue Nov 15, 2022 · 1 comment · Fixed by #3359
Labels
fixed Something works now, yay! LWG Library Working Group issue

Comments

@StephanTLavavej
Copy link
Member

LWG-3798 Rvalue reference and iterator_category

@frederick-vs-ja
Copy link
Contributor

frederick-vs-ja commented Nov 23, 2022

I find that I forgot mentioning elements_­view::​iterator in the proposed resolution. I've submitted another LWG issue to fix this.

Edit: it's LWG-3832 now.

Edit: the originally proposed resolution of LWG-3832 was incorrect. I've mailed LWG chair to propose an updated resolution (the first correction was still incorrect, and the following is the second):

If range_reference_t<Base> is a reference type and std​::​get<N>(*current_) is an prvalue or neither range_reference_t<Base> nor tuple_element_t<N, range_reference_t<Base>> is a reference type, iterator_category denotes input_iterator_tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed Something works now, yay! LWG Library Working Group issue
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants