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

Constexprize bind_front and bind_back tests #3117

Merged

Conversation

JMazurkiewicz
Copy link
Contributor

@JMazurkiewicz JMazurkiewicz commented Sep 20, 2022

Closes #968.

This PR constexprizes already existing tests and adds extra PMF test for bind_back.

@JMazurkiewicz JMazurkiewicz requested a review from a team as a code owner September 20, 2022 19:39
@StephanTLavavej StephanTLavavej added the test Related to test code label Sep 20, 2022
@StephanTLavavej StephanTLavavej added this to Initial Review in Code Reviews via automation Sep 20, 2022
@strega-nil-ms strega-nil-ms moved this from Initial Review to Final Review in Code Reviews Sep 21, 2022
tests/std/tests/P2387R3_bind_back/test.cpp Outdated Show resolved Hide resolved
tests/std/tests/P2387R3_bind_back/test.cpp Outdated Show resolved Hide resolved
tests/std/tests/P2387R3_bind_back/test.cpp Show resolved Hide resolved
tests/std/tests/P0356R5_bind_front/test.cpp Outdated Show resolved Hide resolved
@StephanTLavavej
Copy link
Member

Thanks, this looks great! 😻 I pushed some nitpicky changes, and a minor expansion of test coverage (ensuring we invoke both binders with reference_wrappers).

✅ No modules impact - test-only changes.

@StephanTLavavej StephanTLavavej moved this from Final Review to Ready To Merge in Code Reviews Sep 22, 2022
@StephanTLavavej StephanTLavavej self-assigned this Sep 22, 2022
@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 35078f3 into microsoft:main Sep 22, 2022
Code Reviews automation moved this from Ready To Merge to Done Sep 22, 2022
@StephanTLavavej
Copy link
Member

Thanks for finding this long-ago-filed issue and improving the test coverage here! ✅ 😻 🎉

@JMazurkiewicz JMazurkiewicz deleted the constexpr_bind_front_test branch September 22, 2022 23:15
CaseyCarter pushed a commit to CaseyCarter/STL that referenced this pull request Oct 6, 2022
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Related to test code
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

tests: Further constexprize P0356R5_bind_front after std::string is constexpr
3 participants