libstdc++: Tweak common_iterator::operator-> return type [PR104443]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 28 Jul 2022 19:55:51 +0000 (20:55 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 29 Jul 2022 09:10:00 +0000 (10:10 +0100)
commitb5f5d1b36edbcd7d923f2e2653e54e52637c715b
tree2c9535583e57e796859c3176447cc49d95157d47
parent4894ba078692a780a461d2f358b5dfaa25719859
libstdc++: Tweak common_iterator::operator-> return type [PR104443]

This adjusts the return type to match the resolution of LWG 3672. There
is no functional difference, because decltype(auto) always deduced a
value anyway, but this makes it simpler and consistent with the working
draft.

libstdc++-v3/ChangeLog:

PR libstdc++/104443
* include/bits/stl_iterator.h (common_iterator::operator->):
Change return type to just auto.
libstdc++-v3/include/bits/stl_iterator.h