[libcxx-commits] [PATCH] D75642: [libcxx][span] Remove const_iterator from std::span

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu May 14 05:52:16 PDT 2020


ldionne added inline comments.


================
Comment at: libcxx/test/std/containers/views/span.iterators/end.pass.cpp:51
     {
-    	typename Span::const_pointer last = &*(s.cbegin() + s.size() - 1);
-        assert( e !=  s.begin());
-        assert(ce != s.cbegin());
-        assert( &*( e-1) == last);
-        assert( &*(ce-1) == last);
+    	typename Span::const_pointer last = &*(s.begin() + s.size() - 1);
+        assert(e != s.begin());
----------------
Please watch out for added tabs in the future.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75642/new/

https://reviews.llvm.org/D75642





More information about the libcxx-commits mailing list