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

Implement LWG-4135 The helper lambda of std::erase for list should specify return type as bool #5131

Merged
merged 5 commits into from
Dec 5, 2024

Conversation

frederick-vs-ja
Copy link
Contributor

Also improves test coverage for P1209R0 by separating related cases to a new test file, which is actually the major part of this PR.

Fixes #5117.

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner November 25, 2024 04:16
@StephanTLavavej StephanTLavavej added the LWG Library Working Group issue label Nov 25, 2024
@StephanTLavavej StephanTLavavej self-assigned this Nov 25, 2024
This exercises both adjacent and non-adjacent removals,
inspects the container's entire contents again, and is somewhat
clearer about distinguishing element values from the number of
elements removed. (In the `std::erase` case, the container no longer
contains odd elements, so removing 5 elements is clear.)

This is, of course, the first digits of pi.
@StephanTLavavej
Copy link
Member

Thanks! 😻 I pushed significant test changes, please double-check.

@StephanTLavavej StephanTLavavej removed their assignment Dec 2, 2024
@StephanTLavavej StephanTLavavej self-assigned this Dec 3, 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 a8fea5b into microsoft:main Dec 5, 2024
39 checks passed
@frederick-vs-ja frederick-vs-ja deleted the lwg-4135 branch December 5, 2024 06:42
@StephanTLavavej
Copy link
Member

🐑 📝 👻

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
Archived in project
Development

Successfully merging this pull request may close these issues.

LWG-4135 The helper lambda of std::erase for list should specify return type as bool
2 participants