diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-08-20 19:41:15 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2020-08-20 19:42:02 +0100 |
commit | 5e9ad288eb6fb366142b166e7985d16727b398e1 (patch) | |
tree | 1e33902007eeb2e36356927ce6de9ddef61e2deb /gcc | |
parent | 300ef2fcc10e98359d14654be23bbb84a5d141e1 (diff) | |
download | gcc-5e9ad288eb6fb366142b166e7985d16727b398e1.zip gcc-5e9ad288eb6fb366142b166e7985d16727b398e1.tar.gz gcc-5e9ad288eb6fb366142b166e7985d16727b398e1.tar.bz2 |
libstdc++: Make incrementable<__int128> satisfied in strict mode
This adds specializations of std::incrementable_traits so that 128-bit
integers are always considered incrementable (and therefore usable with
std::ranges::iota_view) even when they don't satisfy std::integral.
libstdc++-v3/ChangeLog:
* include/bits/iterator_concepts.h [__STRICT_ANSI__]
(incrementable_traits<__int128>): Define specialization.
(incrementable_traits<unsigned __int128>): Likewise.
* testsuite/std/ranges/iota/96042.cc: Test iota_view with
__int128.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions