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

Avoid truncation warnings for contiguous iterators with unusual difference types #4898

Merged
merged 5 commits into from
Aug 25, 2024

Conversation

ofAlpaca
Copy link
Contributor

Fixes #3663
It's my second time contributing STL.
I would be appreciated if you could review my code and testcase.
Any suggestions are welcome.

@ofAlpaca ofAlpaca requested a review from a team as a code owner August 19, 2024 16:35
@CaseyCarter CaseyCarter added the bug Something isn't working label Aug 19, 2024
@ofAlpaca
Copy link
Contributor Author

@microsoft-github-policy-service agree

@StephanTLavavej StephanTLavavej self-assigned this Aug 20, 2024
@StephanTLavavej
Copy link
Member

Thanks, this is awesome! 😻 I pushed commits for minor nitpicks in the test.

@StephanTLavavej StephanTLavavej removed their assignment Aug 22, 2024
@StephanTLavavej StephanTLavavej changed the title Type casting to _CtgIt2 and _OutCtgIt Avoid truncation warnings for contiguous iterators with unusual difference types Aug 22, 2024
@StephanTLavavej StephanTLavavej self-assigned this Aug 25, 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 d5777f4 into microsoft:main Aug 25, 2024
39 checks passed
@StephanTLavavej
Copy link
Member

Thanks for fixing these truncation warnings and congratulations on your second microsoft/STL commit! 🚀 🐈 🐈‍⬛

This is expected to ship in VS 2022 17.12 Preview 3.

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>/<iterator>: contiguous iterators with non-ptrdiff_t difference types
3 participants