[libcxx-commits] [libcxx] [libc++][ranges] Ensure range access CPOs are provided in `<iterator>` (PR #151745)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Aug 5 01:26:47 PDT 2025
================
@@ -81,6 +81,10 @@ static_assert(test(std::ranges::rend, a));
static_assert(test(std::ranges::size, a));
static_assert(test(std::ranges::ssize, a));
+#if TEST_STD_VER >= 26
+// static_assert(test(std::views::reserve_hint, a));
+#endif
+
----------------
frederick-vs-ja wrote:
The intent was that `include.iterator.compile.pass.cpp` should mirror the corresponding parts in `cpo.compile.pass.cpp`, so this part was added to both files.
https://github.com/llvm/llvm-project/pull/151745
More information about the libcxx-commits
mailing list