[libcxx-commits] [PATCH] D71994: SFINAE span default constructor on Extent == 0

Marshall Clow via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jan 4 21:22:49 PST 2020


mclow.lists added a comment.

In D71994#1802434 <https://reviews.llvm.org/D71994#1802434>, @miscco wrote:

> Also if we would not remove the default constructor `span<T, 2>` would fulfill the`default_constructible` concept although it does not.


**That** is a compelling argument.

Since you pointed this out, we probably need a test showing that this is true for:

- dynamically sized spans
- statically sized spans of size 0
- but NOT for statically sized spans of size > 0


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D71994





More information about the libcxx-commits mailing list