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

Make implicit conversion to bool ADL-proof (except for views) #4334

Merged

Conversation

frederick-vs-ja
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja commented Jan 21, 2024

... by _STD-qualifying _Fake_copy_init. Towards #140.

While dealing with #4318, I found that most, if not all, occurrences of _Fake_copy_init in MSVC STL needed to be qualified.

Fixed components:

  • "legacy" comparison function objects: equal_to, not_equal_to, less, greater, less_equal, and greater_equal
  • iterator adaptors: reverse_iterator, move_iterator (together with move_sentinel), and basic_const_iterator
  • optional
  • expected (together with unexpected)

Views (in <ranges>) are not yet touched since I haven't come up with testing examples, but I think occurrences of _Fake_copy_init in views also need to be qualified.

... by `_STD`-qualifying `_Fake_copy_init`.
@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner January 21, 2024 08:05
@github-actions github-actions bot added this to Initial Review in Code Reviews Jan 21, 2024
@StephanTLavavej StephanTLavavej added the bug Something isn't working label Jan 21, 2024
@StephanTLavavej StephanTLavavej self-assigned this Jan 21, 2024
@StephanTLavavej StephanTLavavej removed their assignment Jan 22, 2024
@StephanTLavavej

This comment was marked as resolved.

@StephanTLavavej StephanTLavavej moved this from Initial Review to Ready To Merge in Code Reviews Jan 22, 2024
@StephanTLavavej StephanTLavavej self-assigned this Jan 24, 2024
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit ce257fc into microsoft:main Jan 25, 2024
35 checks passed
Code Reviews automation moved this from Ready To Merge to Done Jan 25, 2024
@StephanTLavavej
Copy link
Member

Qualify qualify qualify! 🛡️ 🛡️ 🛡️

@frederick-vs-ja frederick-vs-ja deleted the adl-proof-comparison-1 branch January 25, 2024 02:17
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
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants