Skip to content

Commit b410c1d

Browse files
committed
Cleanup
1 parent d8975ea commit b410c1d

File tree

1 file changed

+5
-10
lines changed
  • libcxx/test/std/ranges/range.factories/range.iota.view

1 file changed

+5
-10
lines changed

libcxx/test/std/ranges/range.factories/range.iota.view/size.pass.cpp

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,6 @@
2222
template <typename T>
2323
concept HasSize = requires(const T t) { t.size(); };
2424

25-
struct CheckForSize {
26-
template <class IntegerLikeT>
27-
constexpr void operator()() {
28-
types::for_each(types::integer_types{}, []<typename BoundT>() {
29-
static_assert(HasSize<std::ranges::iota_view<IntegerLikeT, BoundT>>);
30-
});
31-
}
32-
};
33-
3425
constexpr bool test() {
3526
// Both are integer like and both are less than zero.
3627
{
@@ -114,7 +105,11 @@ constexpr bool test() {
114105

115106
// LWG3610: `iota_view::size` sometimes rejects integer-class types
116107
{
117-
types::for_each(types::integer_types{}, CheckForSize{});
108+
types::for_each(types::integer_types{}, []<typename IntegerLikeT>() {
109+
types::for_each(types::integer_types{}, []<typename BoundT>() {
110+
static_assert(HasSize<std::ranges::iota_view<IntegerLikeT, BoundT>>);
111+
});
112+
});
118113
}
119114

120115
return true;

0 commit comments

Comments
 (0)