diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-06-04 20:28:04 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-06-04 21:33:59 +0100 |
commit | 621ea10ca060ba19ec693aa73b5e29d553cca849 (patch) | |
tree | c6e6597462a2efb9f5c72357b4ac701e97e1bb9a /gcc | |
parent | 3e5f2425f80aedd00f28235022a2755eb46f310d (diff) | |
download | gcc-621ea10ca060ba19ec693aa73b5e29d553cca849.zip gcc-621ea10ca060ba19ec693aa73b5e29d553cca849.tar.gz gcc-621ea10ca060ba19ec693aa73b5e29d553cca849.tar.bz2 |
libstdc++: Implement LWG 3403 for std::ranges::ssize
I already changed the constraints for ranges::ssize to use ranges::size,
this implements the rest of LWG 3403, so that the returned type is the
signed type corresponding to the result of ranges::size.
Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:
* include/bits/ranges_base.h (_SSize): Return the result of
ranges::size converted to the wider of make-signed-like-t<S> and
ptrdiff_t, rather than the ranges different type.
* testsuite/std/ranges/access/ssize.cc: Adjust expected result
for an iota_view that uses an integer class type for its
difference_type.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions