Skip to content

Add casts to vector algorithms entry points #5471

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

Merged
merged 26 commits into from
May 10, 2025

Conversation

AlexGuteniev
Copy link
Contributor

Fixes #5421

@AlexGuteniev AlexGuteniev requested a review from a team as a code owner May 4, 2025 12:18
@github-project-automation github-project-automation bot moved this to Initial Review in STL Code Reviews May 4, 2025
@StephanTLavavej StephanTLavavej added the bug Something isn't working label May 5, 2025
@StephanTLavavej StephanTLavavej self-assigned this May 5, 2025
@github-project-automation github-project-automation bot moved this from Initial Review to Work In Progress in STL Code Reviews May 5, 2025
@StephanTLavavej StephanTLavavej removed their assignment May 5, 2025
@AlexGuteniev
Copy link
Contributor Author

I was thinking whether the runtime test is needed at all, or compile-time would have been fine.

Looks like the runtime test also checks the correctness of the unwrapped-to-non-pointer branches, which the main tests don't do, since most of them only use vector<T>.

@StephanTLavavej StephanTLavavej moved this from Work In Progress to Initial Review in STL Code Reviews May 5, 2025
@StephanTLavavej StephanTLavavej self-assigned this May 5, 2025
@StephanTLavavej
Copy link
Member

Thanks! I fixed minor nitpicks and pushed a moderate simplification to the test. 😻

@StephanTLavavej StephanTLavavej removed their assignment May 9, 2025
@StephanTLavavej StephanTLavavej moved this from Initial Review to Ready To Merge in STL Code Reviews May 9, 2025
@StephanTLavavej StephanTLavavej moved this from Ready To Merge to Merging in STL Code Reviews May 9, 2025
@StephanTLavavej
Copy link
Member

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

StephanTLavavej added a commit to StephanTLavavej/STL that referenced this pull request May 9, 2025
@StephanTLavavej StephanTLavavej merged commit 396eaf8 into microsoft:main May 10, 2025
39 checks passed
@github-project-automation github-project-automation bot moved this from Merging to Done in STL Code Reviews May 10, 2025
@StephanTLavavej
Copy link
Member

Thanks for adding these important static_cats! ⚡ 🐱 😹

@AlexGuteniev AlexGuteniev deleted the different-difference branch May 10, 2025 10:45
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
Archived in project
Development

Successfully merging this pull request may close these issues.

<algorithm>, <xutility>: vector algorithms may break integer class type difference iterators
3 participants