diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-02-18 15:51:27 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2020-02-18 17:43:36 +0000 |
commit | 9b8e2dea783b3e67813b12c7cb3036b5a9892c65 (patch) | |
tree | 47744e82b548bf1f4bcc08509b58ce03a097c0a9 /libgfortran/io | |
parent | d6c9e372372ee78283a21651313fce965d22274d (diff) | |
download | gcc-9b8e2dea783b3e67813b12c7cb3036b5a9892c65.zip gcc-9b8e2dea783b3e67813b12c7cb3036b5a9892c65.tar.gz gcc-9b8e2dea783b3e67813b12c7cb3036b5a9892c65.tar.bz2 |
libstdc++: P1976R2 Fixed-size span construction from dynamic range
This includes fixes for first, last, as_bytes and as_writable_bytes
which were missing from the paper.
* include/std/span (__cpp_lib_span): Update value.
(span(It, size_type), span(It, End)): Make conditionally explicit. Add
assertion.
(span(R&&), span(const span<OType, OExtent>&)): Likewise and relax
constraints.
(span::first<Count>(), span::last<Count>()): Use explicit type in
return statement.
(as_bytes, as_writable_bytes): Likewise.
* include/std/version (__cpp_lib_span): Update value.
* testsuite/23_containers/span/1.cc: Check new value.
* testsuite/23_containers/span/2.cc: Check new value.
* testsuite/23_containers/span/explicit.cc: New test.
Diffstat (limited to 'libgfortran/io')
0 files changed, 0 insertions, 0 deletions