[PATCH] libstdc++: ranges::rotate should use ranges::iter_move [PR121913]
Jonathan Wakely
jwakely@redhat.com
Tue Sep 16 16:37:30 GMT 2025
On Tue, 16 Sept 2025 at 17:12, Patrick Palka <ppalka@redhat.com> wrote:
>
> On Tue, 16 Sep 2025, Jonathan Wakely wrote:
>
> > The r16-3835-g7801236069a95c change to use ranges::iter_move should also
> > have used iter_value_t<_Iter> to ensure we get an object of the value
> > type, not a proxy reference.
> >
> > libstdc++-v3/ChangeLog:
> >
> > PR libstdc++/121913
> > * include/bits/ranges_algo.h (__rotate_fn::operator()): Use
> > auto_value_t<_Iter> instead of deduced type.
>
> Stale subject line? LGTM besides that
Oops, yeah I reused the commit message using -c 7801236069a95c and
forgot to change that bit.
Maybe "use ranges::iter_move properly" ;-)
More information about the Libstdc++
mailing list