Skip to content

Constexprize bind_front and bind_back tests - #3117

Merged
Stephan T. Lavavej (StephanTLavavej) merged 5 commits into
microsoft:mainfrom
JMazurkiewicz:constexpr_bind_front_test
Sep 22, 2022
Merged

Constexprize bind_front and bind_back tests#3117
Stephan T. Lavavej (StephanTLavavej) merged 5 commits into
microsoft:mainfrom
JMazurkiewicz:constexpr_bind_front_test

Conversation

@JMazurkiewicz

@JMazurkiewicz Jakub Mazurkiewicz (JMazurkiewicz) commented Sep 20, 2022

Copy link
Copy Markdown
Contributor

Closes #968.

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

Comment thread tests/std/tests/P0356R5_bind_front/test.cpp Outdated
Comment thread tests/std/tests/P2387R3_bind_back/test.cpp Outdated
Comment thread tests/std/tests/P2387R3_bind_back/test.cpp
Comment thread tests/std/tests/P2387R3_bind_back/test.cpp
Comment thread tests/std/tests/P0356R5_bind_front/test.cpp Outdated
@StephanTLavavej

Copy link
Copy Markdown
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

Copy link
Copy Markdown
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit 35078f3 into microsoft:main Sep 22, 2022
@StephanTLavavej

Copy link
Copy Markdown
Member

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

@JMazurkiewicz
Jakub Mazurkiewicz (JMazurkiewicz) deleted the constexpr_bind_front_test branch September 22, 2022 23:15
Casey Carter (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

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants