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

P1518R2 Stop Overconstraining Allocators In Container Deduction Guides #2032

Merged
merged 14 commits into from
Aug 27, 2021

Conversation

fsb4000
Copy link
Contributor

@fsb4000 fsb4000 commented Jul 1, 2021

Fixes #1974

https://wg21.link/P1518R2

I have a few questions:

  1. It works with clang-cl and doesn't work with cl. Is it me or the compiler has a bug?

  2. libc++ did it in C++17: llvm/llvm-project@dd15c27

Is it ok do same for compatibility with libc ++ tests?

@fsb4000 fsb4000 requested a review from a team as a code owner July 1, 2021 03:02
@StephanTLavavej StephanTLavavej changed the title implement P1518R2 P1518R2 Stop Overconstraining Allocators In Container Deduction Guides Jul 1, 2021
@StephanTLavavej StephanTLavavej added the cxx23 C++23 feature label Jul 1, 2021
Copy link
Contributor

@miscco miscco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Co-authored-by: Michael Schellenberger Costa <[email protected]>
@fsb4000

This comment has been minimized.

@fsb4000

This comment has been minimized.

@miscco

This comment has been minimized.

@fsb4000

This comment has been minimized.

@fsb4000

This comment has been minimized.

@fsb4000

This comment has been minimized.

@StephanTLavavej

This comment has been minimized.

@StephanTLavavej

This comment has been minimized.

@StephanTLavavej StephanTLavavej self-assigned this Aug 18, 2021
Copy link
Member

@StephanTLavavej StephanTLavavej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for implementing this CTAD paper!

stl/inc/queue Show resolved Hide resolved
stl/inc/deque Outdated Show resolved Hide resolved
stl/inc/deque Outdated Show resolved Hide resolved
@StephanTLavavej
Copy link
Member

I'm mirroring this to an MSVC-internal PR. Changes can still be pushed during final review, but please notify me if that happens.

@StephanTLavavej
Copy link
Member

Had to push a change to get this to pass in the internal test harness, which always wants to link and run tests (even if they're named test.compile.pass.cpp). Dropping extern from pmr::monotonic_buffer_resource mr; was sufficient, as it has a default constructor.

@CaseyCarter CaseyCarter removed their assignment Aug 26, 2021
@StephanTLavavej StephanTLavavej merged commit d46c27f into microsoft:main Aug 27, 2021
@StephanTLavavej
Copy link
Member

Thanks for improving CTAD, one of my favorite features! 😻 🚀 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cxx23 C++23 feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

P1518R2 Stop Overconstraining Allocators In Container Deduction Guides
4 participants