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

Range RangeFrom RangeInclusive doesn't implement Copy but RangeFull RangeTo RangeToInclusive do #90190

Closed
Stargateur opened this issue Oct 23, 2021 · 2 comments

Comments

@Stargateur
Copy link
Contributor

Implementation of Copy:

Is there a rational that explain to not implement Copy for other Range structure ? This look inconsistent.

@the8472
Copy link
Member

the8472 commented Oct 23, 2021

The former are iterators, the latter are not. Copy intentionally isn't implemented on iterators since it caused confusion (#18045).

@Stargateur
Copy link
Contributor Author

Stargateur commented Oct 23, 2021

Indeed duplicate of #18045 thx

lot of info here #21846

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants