Skip to content

Conversation

frederick-vs-ja
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja commented Sep 24, 2024

In #4961 we made an internal secret constructor private. It's arguably conforming to leave the internal constructor of pair public, because it must be called with 4 arguments, and no Standard constructor would be selected in such a call. However, it's possibly better to prevent accident calls to implementation details.

Also move the deleted operator= overload to the private section for consistency, which should affect nothing. Edit: reverted.

It's arguably conforming to leave the internal constructor public,
because it must be called with 4 arguments, and no Standard
constructor would be selected in such a call. However, it's possibly
better to prevent accident calls to implementation details.

Also move the deleted `operator=` overload to the private section for
consistency, which should affects nothing.
@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner September 24, 2024 03:18
@StephanTLavavej StephanTLavavej added the enhancement Something can be improved label Sep 24, 2024
@StephanTLavavej StephanTLavavej self-assigned this Sep 24, 2024
@StephanTLavavej StephanTLavavej removed their assignment Sep 24, 2024
@StephanTLavavej StephanTLavavej self-assigned this Sep 27, 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 bbe8b6b into microsoft:main Sep 28, 2024
39 checks passed
@StephanTLavavej
Copy link
Member

Is it secret? Is it safe? 🍐 💍 🧙‍♂️

@frederick-vs-ja frederick-vs-ja deleted the pair-privatization branch September 29, 2024 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Something can be improved
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants