Re: [PATCH 1/2] libstdc++: Use C++23 deducing this in std::bind_front

2024-01-12 Thread Jonathan Wakely
On Fri, 12 Jan 2024 at 20:09, Patrick Palka wrote: > > This simplifies the operator() of _Bind_front using C++23 deducing > this, allowing us to condense multiple nearly identical operator() > overloads into one. > > In passing I think we can remove _Bind_front's defaulted special member >

[PATCH 1/2] libstdc++: Use C++23 deducing this in std::bind_front

2024-01-12 Thread Patrick Palka
This simplifies the operator() of _Bind_front using C++23 deducing this, allowing us to condense multiple nearly identical operator() overloads into one. In passing I think we can remove _Bind_front's defaulted special member declarations and just let the compiler implicitly generate them for us.