[all-commits] [llvm/llvm-project] 799410: [libc++][span] SFINAE span default constructor on ...

Michael Schellenberger Costa via All-commits all-commits at lists.llvm.org
Thu May 14 06:35:36 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 79941086fba3df115e5e7b54a5f826096c933102
      https://github.com/llvm/llvm-project/commit/79941086fba3df115e5e7b54a5f826096c933102
  Author: Michael Schellenberger Costa <mschellenbergercosta at googlemail.com>
  Date:   2020-05-14 (Thu, 14 May 2020)

  Changed paths:
    M libcxx/include/span
    M libcxx/test/std/containers/views/span.cons/default.fail.cpp
    M libcxx/test/std/containers/views/span.cons/default.pass.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list