]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix access issue in iota_view::_Sentinel [PR100690]
authorPatrick Palka <ppalka@redhat.com>
Fri, 21 May 2021 03:39:05 +0000 (23:39 -0400)
committerPatrick Palka <ppalka@redhat.com>
Fri, 21 May 2021 03:39:05 +0000 (23:39 -0400)
commit317a38cd468d565dc8ce45c6da0dbccf38808f70
tree7c730c085b98cb2ed9004191c6e4b8ffe01106fd
parentea34e2edd3d7ab245d1f57a1487c10587f324ec6
libstdc++: Fix access issue in iota_view::_Sentinel [PR100690]

libstdc++-v3/ChangeLog:

PR libstdc++/100690
* include/std/ranges (iota_view::_Sentinel::_M_distance_from):
Split out this member function from ...
(iota_view::_Sentinel::operator-): ... here, for sake of access
control.
* testsuite/std/ranges/iota/iota_view.cc (test05): New test.
libstdc++-v3/include/std/ranges
libstdc++-v3/testsuite/std/ranges/iota/iota_view.cc