File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
libcxx/test/std/ranges/range.factories/range.iota.view Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 2222template <typename T>
2323concept 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-
3425constexpr 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 ;
You can’t perform that action at this time.
0 commit comments