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

Marshall Clow via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Dec 16 09:30:01 PST 2019


mclow.lists added a comment.

In D69466#1786043 <https://reviews.llvm.org/D69466#1786043>, @mclow.lists wrote:

> If the tests are calling `operator[]` on a `span<T, 0>`, then they are incorrect and should be changed.


Note that this is independent of whether or not we should add a `static_assert` to `operator[]`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D69466





More information about the libcxx-commits mailing list