C++ Logo

std-proposals

Advanced search

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

From: Thiago Macieira <thiago_at_[hidden]>
Date: Fri, 02 May 2025 06:57:35 -0700
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

Received on 2025-05-02 13:57:40