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

2025-05-20 Thread Jonathan Wakely
On 16/05/25 15:56 +0200, 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 changed to co

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

2025-05-16 Thread Tomasz Kamiński
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 changed to const void*, so again we do not cast away const from