C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Guarantees over addresses from function pointers created from lambda

From: Sebastian Wittmeier <wittmeier_at_[hidden]>
Date: Fri, 2 May 2025 16:46:33 +0200
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_at_[hidden]> Gesendet:Fr 02.05.2025 15:57 Betreff:Re: [std-proposals] Guarantees over addresses from function pointers created from lambda An:std-proposals_at_[hidden]; CC:Thiago Macieira <thiago_at_[hidden]>; 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_at_[hidden] https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals

Received on 2025-05-02 14:53:24