Re: [PATCH] libstdc++: Implement C++26 function_ref [PR119126]

2025-05-15 Thread Tomasz Kaminski
I noticed that I am missing deduction guides for function_ref. Interestingly only function_ref has them, and not move_only_function, copyable_function. On Thu, May 15, 2025 at 5:00 AM Patrick Palka wrote: > > > On Wed, 14 May 2025, Tomasz Kamiński wrote: > > > This patch implements C++26 functio

Re: [PATCH] libstdc++: Implement C++26 function_ref [PR119126]

2025-05-14 Thread Patrick Palka
On Wed, 14 May 2025, Tomasz Kamiński wrote: > This patch implements C++26 function_ref as specified in P0792R14, > with correction for constraints for constructor accepting nontype_t > parameter from LWG 4256. > > As function_ref may store a pointer to the const object, __Ptrs::_M_obj is > chan