Re: [PATCH] libstdc++: Fix common_iterator::operator-> [PR95322]

2020-05-26 Thread Jonathan Wakely via Gcc-patches
On 26/05/20 15:18 -0400, Patrick Palka via Libstdc++ wrote: This patch fixes the definition of common_iterator::operator-> when the underlying iterator type's operator* returns a non-reference. The first problem is that the class __detail::_Common_iter_proxy is used unqualified. Fixing that rev

[PATCH] libstdc++: Fix common_iterator::operator-> [PR95322]

2020-05-26 Thread Patrick Palka via Gcc-patches
This patch fixes the definition of common_iterator::operator-> when the underlying iterator type's operator* returns a non-reference. The first problem is that the class __detail::_Common_iter_proxy is used unqualified. Fixing that revealed another problem: the class's template friend declaration