STL icon indicating copy to clipboard operation
STL copied to clipboard

<utility>: Remove self swap check from pair.

Open Andor233 opened this issue 1 year ago • 5 comments

Fixes #4597

Andor233 avatar May 13 '24 13:05 Andor233

@microsoft-github-policy-service agree

Andor233 avatar May 13 '24 13:05 Andor233

Finally, we should add tests\GH_004597_self_swap here to ensure the MS-internal mechanisms to run this test. https://github.com/microsoft/STL/blob/8dc4faadafb52e3e0a627e046b41258032d9bc6a/tests/std/test.lst#L245-L246

frederick-vs-ja avatar May 13 '24 17:05 frederick-vs-ja

Thanks, this is awesome! :heart_eyes_cat: I pushed a series of fine-grained commits to follow our coding conventions in the test, but nothing serious (beyond a bug number typo).

We merge changes to the GitHub and MSVC-internal repos simultaneously in a semi-manual process. To save time, we merge PRs in batches, and your PR will be part of the next batch. I'll post comments here as I prepare this (likely later this week although possibly next week if I get busy).

StephanTLavavej avatar May 16 '24 06:05 StephanTLavavej

Thanks, this is awesome! 😻 I pushed a series of fine-grained commits to follow our coding conventions in the test, but nothing serious (beyond a bug number typo).

We merge changes to the GitHub and MSVC-internal repos simultaneously in a semi-manual process. To save time, we merge PRs in batches, and your PR will be part of the next batch. I'll post comments here as I prepare this (likely later this week although possibly next week if I get busy).

Thank you.

Andor233 avatar May 16 '24 07:05 Andor233

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

StephanTLavavej avatar May 17 '24 19:05 StephanTLavavej

Thanks for fixing this bug, and congratulations on your first microsoft/STL commit! :heart_eyes_cat: :tada: :magic_wand:

This change is expected to ship in VS 2022 17.11 Preview 3.

StephanTLavavej avatar May 21 '24 00:05 StephanTLavavej