Is there any reason (not) to allow member pointers to PEM functions?
They would just be treated like any other non-static member function, except that the code creating the pointer is limited to the class-internal code, which may call PEM functions? And any code, even external to the class, may call the pointed to PEM?
-----Ursprüngliche Nachricht-----
Von: Thiago Macieira via Std-Proposals <std-proposals@lists.isocpp.org>
Gesendet: So 21.06.2026 18:25
Betreff: Re: [std-proposals] Translation-unit-local functions that access private class fields
Anlage: signature.asc
An: Rhidian De Wit <rhidiandewit@gmail.com>;
CC: Thiago Macieira <thiago@macieira.org>; std-proposals@lists.isocpp.org;
Except that if you were to return a pointer to a private extension method from
a public/protected one, it is shared and cannot be internal linkage.