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

Testing: Check new C++23 CPOs #3610

Merged
merged 5 commits into from
Apr 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions tests/std/tests/P0896R4_ranges_range_machinery/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,25 @@ STATIC_ASSERT(test_cpo(ranges::views::take_while));
STATIC_ASSERT(test_cpo(ranges::views::transform));
STATIC_ASSERT(test_cpo(ranges::views::values));

#if _HAS_CXX23
STATIC_ASSERT(test_cpo(ranges::views::adjacent<3>));
STATIC_ASSERT(test_cpo(ranges::views::adjacent_transform<3>));
STATIC_ASSERT(test_cpo(ranges::views::as_const));
STATIC_ASSERT(test_cpo(ranges::views::as_rvalue));
STATIC_ASSERT(test_cpo(ranges::views::cartesian_product));
STATIC_ASSERT(test_cpo(ranges::views::chunk));
STATIC_ASSERT(test_cpo(ranges::views::chunk_by));
STATIC_ASSERT(test_cpo(ranges::views::enumerate));
STATIC_ASSERT(test_cpo(ranges::views::join_with));
STATIC_ASSERT(test_cpo(ranges::views::pairwise));
STATIC_ASSERT(test_cpo(ranges::views::pairwise_transform));
STATIC_ASSERT(test_cpo(ranges::views::repeat));
STATIC_ASSERT(test_cpo(ranges::views::slide));
STATIC_ASSERT(test_cpo(ranges::views::stride));
STATIC_ASSERT(test_cpo(ranges::views::zip));
STATIC_ASSERT(test_cpo(ranges::views::zip_transform));
#endif // _HAS_CXX23

void test_cpo_ambiguity() {
using namespace std::ranges;

Expand Down