File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
libcxx/test/std/ranges/range.factories/range.iota.view Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,6 @@ struct X {};
4949template <typename IntT>
5050concept CanDoubleWrap = requires (IntT i) { std::views::iota (std::views::iota (i)); };
5151
52- template <typename T>
53- concept HasIota = requires (T t) { std::views::iota (t); };
54-
5552constexpr bool
5653test () {
5754 testType<SomeInt>(SomeInt (10 ));
@@ -75,14 +72,10 @@ test() {
7572 {
7673 static_assert (std::same_as<decltype (std::views::iota), decltype (std::ranges::views::iota)>);
7774 }
78- { // LWG4096
79- // [[maybe_unused]] auto i1 = std::views::iota(std::views::iota(82));
80- // [[maybe_unused]] auto i2 = std::views::iota(std::views::iota(SomeInt(94)));
81-
75+ { // LWG4096: views::iota(views::iota(0)) should be rejected
8276 static_assert (!CanDoubleWrap<int >);
8377 static_assert (!CanDoubleWrap<SomeInt>);
84- static_assert (!HasIota<decltype (std::views::iota (82 ))>);
85- static_assert (!HasIota<decltype (std::views::iota (SomeInt (94 )))>);
78+
8679 static_assert (!std::is_invocable_v<decltype (std::views::iota), decltype (std::views::iota (82 ))>);
8780 }
8881
You can’t perform that action at this time.
0 commit comments