[PATCH] libstdc++: Avoid hard error in ranges::unique_copy [PR100770]

Jonathan Wakely jwakely.gcc@gmail.com
Wed May 26 17:28:16 GMT 2021


On Wed, 26 May 2021 at 18:00, Patrick Palka via Libstdc++
<libstdc++@gcc.gnu.org> wrote:
>
> When input_iterator<_Out> isn't satisfied, we need to avoid substituting
> into iter_value_t<_Out> because the latter isn't necessarily
> well-formed in that case.  To that end, this patch rewrites the
> problematic condition in ranges::unique_copy into a nested requirement
> which has the correct short-circuiting behavior.
>
> Tested on x86_64-pc-linux-gnu, does this look OK?

OK, thanks.


More information about the Libstdc++ mailing list