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

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 18 22:49:12 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));
----------------
Zingam wrote:

I think I have done it. I noticed then missing tests and I was planning to submit a patch too.

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


More information about the libcxx-commits mailing list