[PATCH] libstdc++: Fix access issues in elements_view::_Sentinel [PR100631]
Jonathan Wakely
jwakely@redhat.com
Mon May 17 16:49:33 GMT 2021
On 17/05/21 12:17 -0400, Patrick Palka via Libstdc++ wrote:
>Tested on x86_64-pc-linux-gnu, does this look OK for 10/11/trunk?
OK, thanks.
>libstdc++-v3/ChangeLog:
>
> PR libstdc++/100631
> * include/std/ranges (elements_view::_Iterator): Befriend
> _Sentinel<!_Const>.
> (elements_view::_Sentinel::_M_equal): Templatize.
> (elements_view::_Sentinel::_M_distance_from): Split out from ...
> (elements_view::_Sentinel::operator-): Here.
> * testsuite/std/ranges/adaptors/elements.cc (test06, test07):
> New tests.
More information about the Libstdc++
mailing list