[libcxx-commits] [libcxx] [libc++][NFC] Add additional tests for begin/end of std::ranges::take_view (PR #79085)

Konstantin Varlamov via libcxx-commits libcxx-commits at lists.llvm.org
Mon Apr 1 16:05:20 PDT 2024


================
@@ -56,8 +66,10 @@ constexpr bool test() {
     ASSERT_SAME_TYPE(decltype(tv.begin()), std::counted_iterator<ForwardIter>);
   }
 
-  // !sized_range
+  // simple-view<V> && !sized_range<V>
   {
+    static_assert(simple_view<MoveOnlyView>);
+    static_assert(simple_view<MoveOnlyView>);
----------------
var-const wrote:

Nit: duplicate line.

https://github.com/llvm/llvm-project/pull/79085


More information about the libcxx-commits mailing list