Sorry, read your mail too quickly. Yes, you are correct, that _is_ an unexpected behaviour as well...
// Robin
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