[committed 3/4] libstdc++: Fix and simplify constraints on std::span constructors

Jonathan Wakely jwakely@redhat.com
Tue Feb 18 17:51:00 GMT 2020


This makes the constraints consistent with the pre-Prague working paper.
     
     * include/std/span (span::__is_compatible_array): Simplify alias
     template by using requires-clause.
     (span::__is_compatible_ref): New alias template for constraining
     constructors.
     (span::__is_compatible_iterator, span::__is_compatible_range): Remove.
     (span(It, size_type), span(It, End)): Use __is_compatible_ref.
     (span(T(&)[N], span(array<T, N>&), span(const array<T, N>&)): Remove
     redundant parentheses.
     (span(R&&)): Add missing constraints.


Tested powerpc64le-linux, committed to trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 4543 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20200218/689a8dff/attachment.bin>


More information about the Libstdc++ mailing list