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

Use requires-clauses and concepts for container-like components since C++20 #4718

Merged

Conversation

frederick-vs-ja
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja commented Jun 9, 2024

Towards #602.

New internal concepts _Iterator_for_container, _Allocator_for_container, and _Hasher_for_container are mainly added for plain disambiguating constraints (as required by the standard).

Edit: desired changes for priority_queue didn't work since MSVC and Clang haven't implemented CWG-2369 (Godbolt link).

Edit: reduced the bug of EDG - DevCom-10678753.

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner June 9, 2024 06:48
@StephanTLavavej StephanTLavavej added the enhancement Something can be improved label Jun 9, 2024
@StephanTLavavej StephanTLavavej self-assigned this Jun 9, 2024
stl/inc/hash_map Outdated Show resolved Hide resolved
stl/inc/xhash Outdated Show resolved Hide resolved
stl/inc/map Outdated Show resolved Hide resolved
@StephanTLavavej StephanTLavavej removed their assignment Jun 17, 2024
@StephanTLavavej
Copy link
Member

This is great, thank you! 😻 Less SFINAE means a happier codebase.

@StephanTLavavej StephanTLavavej self-assigned this Jun 26, 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 d6b0352 into microsoft:main Jun 27, 2024
39 checks passed
@StephanTLavavej
Copy link
Member

Thanks for substituting away all of this SFINAE! 😹 🪄 🥳

@frederick-vs-ja frederick-vs-ja deleted the requires-for-containers branch June 27, 2024 23:19
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.

2 participants