We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1981bd commit 8e48a6cCopy full SHA for 8e48a6c
libcxx/test/std/library/description/conventions/customization.point.object/cpo.compile.pass.cpp
@@ -18,6 +18,8 @@
18
#include <type_traits>
19
#include <utility>
20
21
+#include "test_macros.h"
22
+
23
// Test for basic properties of C++20 16.3.3.3.6 [customization.point.object].
24
template <class CPO, class... Args>
25
constexpr bool test(CPO& o, Args&&...) {
@@ -79,6 +81,9 @@ static_assert(test(std::ranges::ssize, a));
79
81
// views::empty<T> is not a CPO
80
82
static_assert(test(std::views::iota, 1));
83
static_assert(test(std::views::iota, 1, 10));
84
+#if TEST_STD_VER >= 26
85
+static_assert(test(std::views::indices, 10));
86
+#endif
87
//static_assert(test(std::views::istream<int>, 1);
88
static_assert(test(std::views::single, 4));
89
0 commit comments