-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Implement views::counted #1375
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
Implement views::counted #1375
Conversation
|
@CaseyCarter, I am unsure whether we should test anything more as we essentially tested everything already with the span and subrange tests. Other test ideas besides checking for content? |
|
Urgh, that conversion warning of I guess I should have been more careful regarding the |
|
@CaseyCarter I feel like the This was also the reason that in the test we have these two lines in the test: counted_iterator<Iter> constructed(Iter{input}, iter_difference_t<Iter>{2});
counted_iterator<Iter> constructedEmpty{Iter{input}, iter_difference_t<Iter>{0}};Would you say that this is something we might want to change? |
|
Also the actual error is that |
CaseyCarter
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a real review, just correcting the problem from #1393.
I'm not paranoid!
... resolving simple conflicts from adding things in the same place in both `tests/std/test.lst` and `tests/std/tests/P0896R4_ranges_range_machinery`.
|
Every contribution counts! (But some more than others.) |
Partially addresses #39
Note: Reading the requirement in http://eel.is/c++draft/ranges#range.counted-2 I was lazy and assumed that it is sufficient that the passed argument is convertible. Is that correct or do we need to add some
_Choicemagic?