diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-09-30 12:52:08 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-09-30 12:52:08 +0100 |
commit | 582c57a17eaf02e90492145cd7217bda5499076b (patch) | |
tree | 2c75c44849d88b4261c0cf454cf0118a4534976e /gcc/tree-vectorizer.h | |
parent | 6438d29fb1a31c95b9d652117a79dde2f9e4ad6f (diff) | |
download | gcc-582c57a17eaf02e90492145cd7217bda5499076b.zip gcc-582c57a17eaf02e90492145cd7217bda5499076b.tar.gz gcc-582c57a17eaf02e90492145cd7217bda5499076b.tar.bz2 |
Implement LWG 3255 for std::span constructors
Also fix the constraints on span(Container&) and span(const Container&)
constructors so that they aren't used for const spans or const arrays.
* include/std/span (span(element_type(&)[N]))
(span(array<value_type, N>&), span(const array<value_type, N>&)):
Deduce array element type to allow safe const conversions (LWG 3255).
[!_GLIBCXX_P1394] (span(Container&), span(const Container&)): Use
remove_cv_t on arguments to __is_std_span and __is_std_array.
* testsuite/23_containers/span/lwg3255.cc: New test.
From-SVN: r276298
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions