Sorry, read your mail too quickly. Yes, you are correct, that _is_ an unexpected behaviour as well...

// Robin


On Fri, Mar 7, 2025, 12:55 Ell via Std-Proposals <std-proposals@lists.isocpp.org> wrote:


On 3/7/25 09:52, Robin Savonen Söderholm via Std-Proposals wrote:
> The case with 'swap' is mitigated as minmax returns const&, not just &.

It's not the return values that are being swapped, though :)
--
Std-Proposals mailing list
Std-Proposals@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals