[libcxx-commits] [PATCH] D75706: [libcxx][span] Implement solution to LWG-3255

Michael Schellenberger Costa via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Mar 5 12:40:02 PST 2020


miscco created this revision.
miscco added reviewers: ldionne, mclow.lists, EricWF.
Herald added subscribers: libcxx-commits, dexonsmith.
Herald added a project: libc++.

This implements the relaxed requirements on the std::array constructors of span,
where the type only needs to be convertible to the element type of the span.

Note that the previous tests were not sufficient, as the const array<T, n> constructor
was only tested for compile time and the array<T, N> only during runtime.

Restructure the tests so that we can test conversions as well as both constructors.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75706

Files:
  libcxx/include/span
  libcxx/test/std/containers/views/span.cons/stdarray.pass.cpp
  libcxx/www/cxx2a_status.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75706.248572.patch
Type: text/x-patch
Size: 6790 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200305/8e622c57/attachment.bin>


More information about the libcxx-commits mailing list