Skip to content

Fix thinko in ranges::iter_swap - #1072

Merged
Casey Carter (CaseyCarter) merged 2 commits into
microsoft:masterfrom
CaseyCarter:iter_swap_fix
Jul 30, 2020
Merged

Fix thinko in ranges::iter_swap#1072
Casey Carter (CaseyCarter) merged 2 commits into
microsoft:masterfrom
CaseyCarter:iter_swap_fix

Conversation

@CaseyCarter

@CaseyCarter Casey Carter (CaseyCarter) commented Jul 21, 2020

Copy link
Copy Markdown
Contributor

...by transposing arguments to _Iter_exchange_move.

Fixes #1067

Blocking #1062.

...by transposing arguments to `_Iter_exchange_move`.

Fixes microsoft#1067
@CaseyCarter Casey Carter (CaseyCarter) added the bug Something isn't working label Jul 21, 2020
@CaseyCarter
Casey Carter (CaseyCarter) requested a review from a team as a code owner July 21, 2020 17:45
@miscco

Copy link
Copy Markdown
Contributor

Did you really swap the arguments

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but I can’t unsee pre-existing lines! 😹

Comment thread tests/std/tests/P0896R4_ranges_iterator_machinery/test.cpp Outdated
Comment thread tests/std/tests/P0896R4_ranges_iterator_machinery/test.cpp Outdated
@CaseyCarter

Copy link
Copy Markdown
Contributor Author

Thanks for writing buggy code to guarantee yourself job safety err, fixing this tragic bug.

@CaseyCarter Casey Carter (CaseyCarter) removed their assignment Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ranges C++20/23 ranges

Projects

None yet

Development

Successfully merging this pull request may close these issues.

<xutility>: ranges::iter_swap is broken

4 participants