File tree 1 file changed +3
-1
lines changed
libcxx/test/std/ranges/range.utility/range.utility.conv
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 19
19
#include < vector>
20
20
#include " container.h"
21
21
#include " test_iterators.h"
22
+ #include " test_macros.h"
22
23
#include " test_range.h"
23
24
24
25
template <class Container , class Range , class ... Args>
@@ -119,6 +120,7 @@ struct Fallback {
119
120
constexpr void push_back (value_type) {}
120
121
constexpr value_type* begin () { return &x; }
121
122
constexpr value_type* end () { return &x; }
123
+ std::size_t size () const { return 0 ; }
122
124
};
123
125
124
126
struct CtrDirectOrFallback : Fallback {
@@ -180,7 +182,7 @@ struct Reservable : Fallback {
180
182
reserve_called = true ;
181
183
}
182
184
};
183
- static_assert (std::ranges::__reservable_container<Reservable<>>);
185
+ LIBCPP_STATIC_ASSERT (std::ranges::__reservable_container<Reservable<>>);
184
186
185
187
constexpr void test_constraints () {
186
188
{ // Case 1 -- construct directly from the range.
You can’t perform that action at this time.
0 commit comments