And even within an array the standard does not guarantee a same order of the underlying representation.
-----Ursprüngliche Nachricht-----
Von: Thiago Macieira via Std-Proposals <std-proposals@lists.isocpp.org>
Gesendet: Fr 02.05.2025 15:57
Betreff: Re: [std-proposals] Guarantees over addresses from function pointers created from lambda
An: std-proposals@lists.isocpp.org;
CC: Thiago Macieira <thiago@macieira.org>;
On Friday, 2 May 2025 01:24:50 Pacific Daylight Time Robin Savonen Söderholm
via Std-Proposals wrote:
> To put it in a different way: it is possible for the compiler to know what
> a function pointer references, but not the actual pointer value. So == is
> possible, <=> is not.
Or, as we've established: you can order pointers in the same array, but
outside of that only for equality. Functions don't exist in an array.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Principal Engineer - Intel DCAI Platform & System Engineering
--
Std-Proposals mailing list
Std-Proposals@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals