Skip to content

Conversation

CaseyCarter
Copy link
Contributor

LWG-3632 specifies that unique_ptr constructors that accept pointer inhibit CTAD with type_identity_t. We inhibit CTAD differently, but it's not obvious to a reader why these constructors don't look like they do in the Standard - let's add a comment to explain why.

LWG-3632 specifies that `unique_ptr` constructors that accept `pointer` inhibit CTAD with `type_identity_t`. We inhibit CTAD differently, but it's not obvious to a reader why these constructors don't look like they do in the Standard - let's add a comment to explain why.
@CaseyCarter CaseyCarter added the LWG Library Working Group issue label Feb 8, 2022
@CaseyCarter CaseyCarter requested a review from a team as a code owner February 8, 2022 17:35
@CaseyCarter CaseyCarter mentioned this pull request Feb 8, 2022
20 tasks
@StephanTLavavej StephanTLavavej changed the title "Implement" LWG-3632 "Implement" LWG-3632 by commenting unique_ptr CTAD Feb 8, 2022
@StephanTLavavej StephanTLavavej self-assigned this Feb 11, 2022
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo. Requesting or pushing changes is totally fine, but please notify me if that happens.

@StephanTLavavej StephanTLavavej merged commit fbc92af into microsoft:main Feb 12, 2022
@StephanTLavavej
Copy link
Member

Thanks for adding this clarification to the codebase! 🧠 💡 😺

@CaseyCarter CaseyCarter deleted the lwg3632 branch February 12, 2022 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LWG Library Working Group issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants