[libcxx-commits] [PATCH] D69466: Guard against overflow in span::subspan

Michael Schellenberger Costa via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Oct 28 12:00:26 PDT 2019


miscco updated this revision to Diff 226723.
miscco added a comment.

- Add failing tests for span::first
- Add fail tests for span::last
- Add fail tests for element access of span and improve the error message
- SFINAE span default constructor on Extent == 0


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D69466

Files:
  libcxx/include/span
  libcxx/test/std/containers/views/span.cons/default.fail.cpp
  libcxx/test/std/containers/views/span.elem/elem.fail.cpp
  libcxx/test/std/containers/views/span.sub/first.fail.cpp
  libcxx/test/std/containers/views/span.sub/first.pass.cpp
  libcxx/test/std/containers/views/span.sub/last.fail.cpp
  libcxx/test/std/containers/views/span.sub/last.pass.cpp
  libcxx/test/std/containers/views/span.sub/subspan.fail.cpp
  libcxx/test/std/containers/views/span.sub/subspan.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69466.226723.patch
Type: text/x-patch
Size: 13813 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20191028/d4708359/attachment.bin>


More information about the libcxx-commits mailing list