Skip to content

_Uglify the current member of move_iterator - #1080

Merged
Casey Carter (CaseyCarter) merged 1 commit into
microsoft:masterfrom
miscco:fix_move_iterator
Jul 27, 2020
Merged

_Uglify the current member of move_iterator#1080
Casey Carter (CaseyCarter) merged 1 commit into
microsoft:masterfrom
miscco:fix_move_iterator

Conversation

@miscco

@miscco Michael Schellenberger Costa (miscco) commented Jul 23, 2020

Copy link
Copy Markdown
Contributor

Looking at counted_iterator I found that move_iterator has a non-ugly member current. The same for reverse_iterator

As this is a purely private member it is not user accessible and should be _Ugly

Comment thread stl/inc/xutility Outdated
Comment thread stl/inc/xutility Outdated
Comment thread stl/inc/xutility
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) added the bug Something isn't working label Jul 23, 2020
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) changed the title _Uglify the current member of reverse/move iterator _Uglify the current member of move_iterator Jul 23, 2020
@StephanTLavavej

Copy link
Copy Markdown
Member

For final review, we should think about the bincompat consequences. (I think they're acceptable, as mentioned above.)

@CaseyCarter

Copy link
Copy Markdown
Contributor

For final review, we should think about the bincompat consequences. (I think they're acceptable, as mentioned above.)

I don't recall CLR metadata knowing about access control at all, or caring about the names of members: it's primarily concerned with the sizes of non-static data members and their offsets within the complete object's layout. (We even had success with the <atomic> changes moving the first data member into a base class.) Altogether, I'm not concerned about bincompat here since we still have an object of type iterator_type in the same location.

@CaseyCarter
Casey Carter (CaseyCarter) merged commit f49ffaf into microsoft:master Jul 27, 2020
@CaseyCarter

Copy link
Copy Markdown
Contributor

Thank you for making our code, and our lives, a little _Uglier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants