[libcxx-commits] [libcxx] [libc++] Add missing CPO tests for range adaptors (PR #149557)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jul 25 10:29:48 PDT 2025
================
@@ -81,25 +85,50 @@ static_assert(test(std::ranges::ssize, a));
// 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);
+#ifndef TEST_HAS_NO_LOCALIZATION
+static_assert(test(std::views::istream<int>, stream));
+#endif
static_assert(test(std::views::single, 4));
+#if TEST_STD_VER >= 23
+static_assert(test(std::views::repeat, 1));
+#endif
+
----------------
ldionne wrote:
I'll merge this now, but I am happy to adjust as a NFC follow-up if we agree on another organization.
https://github.com/llvm/llvm-project/pull/149557
More information about the libcxx-commits
mailing list