[libcxx-commits] [libcxx] [libc++] Add missing CPO tests for range adaptors (PR #149557)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 18 22:21:46 PDT 2025


================
@@ -77,23 +79,41 @@ static_assert(test(std::ranges::ssize, a));
 
 // [range.factories]
 // views::empty<T> is not a CPO
-static_assert(test(std::views::iota, 1));
 static_assert(test(std::views::iota, 1, 10));
-//static_assert(test(std::views::istream<int>, 1);
+static_assert(test(std::views::iota, 1));
+static_assert(test(std::views::istream<int>, stream));
+static_assert(test(std::views::repeat, 1));
----------------
frederick-vs-ja wrote:

Ah, `views::indices`, which should be guarded with `TEST_STD_VER >= 26`, is being implemented in #146823. Perhaps we can add its test coverage in that PR. CC @H-G-Hristov.

https://github.com/llvm/llvm-project/pull/149557


More information about the libcxx-commits mailing list