[libc++][span] SFINAE span default constructor on Extent == 0
authorMichael Schellenberger Costa <mschellenbergercosta@googlemail.com>
Thu, 14 May 2020 13:28:27 +0000 (09:28 -0400)
committerLouis Dionne <ldionne@apple.com>
Thu, 14 May 2020 13:35:07 +0000 (09:35 -0400)
commit79941086fba3df115e5e7b54a5f826096c933102
tree5eca65601002df1c4cec42b74c5d8a7def3ce81b
parentd061685a8304eb0b6adacd24f8dd2c2ef6dfee39
[libc++][span] SFINAE span default constructor on Extent == 0

The default constructor of a static span requires _Extent == 0 so
SFINAE it out rather than using a static_assert

Differential Revision: https://reviews.llvm.org/D71994
libcxx/include/span
libcxx/test/std/containers/views/span.cons/default.fail.cpp
libcxx/test/std/containers/views/span.cons/default.pass.cpp