[libcxx-commits] [PATCH] D126325: [libc++][test] Verify std::ranges::rbegin, crbegin, rend, crend are CPOs
Joe Loser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue May 24 13:43:25 PDT 2022
jloser created this revision.
jloser added reviewers: var-const, ldionne, Mordante, philnik.
Herald added a project: All.
jloser requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
Uncomment the tests to ensure `std::ranges::rbegin` and friends are indeed
customization points objects.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D126325
Files:
libcxx/test/std/library/description/conventions/customization.point.object/cpo.compile.pass.cpp
Index: libcxx/test/std/library/description/conventions/customization.point.object/cpo.compile.pass.cpp
===================================================================
--- libcxx/test/std/library/description/conventions/customization.point.object/cpo.compile.pass.cpp
+++ libcxx/test/std/library/description/conventions/customization.point.object/cpo.compile.pass.cpp
@@ -66,12 +66,12 @@
static_assert(test(std::ranges::cbegin, a));
static_assert(test(std::ranges::cdata, a));
static_assert(test(std::ranges::cend, a));
-//static_assert(test(std::ranges::crbegin, a));
-//static_assert(test(std::ranges::crend, a));
+static_assert(test(std::ranges::crbegin, a));
+static_assert(test(std::ranges::crend, a));
static_assert(test(std::ranges::data, a));
static_assert(test(std::ranges::empty, a));
-//static_assert(test(std::ranges::rbegin, a));
-//static_assert(test(std::ranges::rend, a));
+static_assert(test(std::ranges::rbegin, a));
+static_assert(test(std::ranges::rend, a));
static_assert(test(std::ranges::size, a));
static_assert(test(std::ranges::ssize, a));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126325.431780.patch
Type: text/x-patch
Size: 1078 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220524/205f4ecc/attachment.bin>
More information about the libcxx-commits
mailing list