https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111963
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- The internal functions like __partition could just take forwarding references to the predicates, at least for C++11 and later.
redi at gcc dot gnu.org via Gcc-bugs Tue, 24 Oct 2023 12:19:26 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111963
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- The internal functions like __partition could just take forwarding references to the predicates, at least for C++11 and later.