On Mon, 8 Sept 2025 at 21:06, Jonathan Wakely <jwak...@redhat.com> wrote: > > On Mon, 8 Sept 2025 at 20:59, François Dumont <frs.dum...@gmail.com> wrote: > > > > This is V2 of this patch. Main diff with initial version is that I > > restored the copy of functors in C++98. > > > > I'm all ears for a new name for the _GLIBCXX_CP_FWDREF macros. > > Great, I was going to ask you about the status of this patch. I'll > take a look ASAP.
It seems to be three changes all bundled together into one patch, replacing the __iter_comp_iter wrappers, reducing the number of copies of functors, and changing lower_bound/upper_bound internals to work with non-const values. The first two changes are good, but should be separate commits, and I don't think the third is needed. My approach for the first change seems simpler: https://forge.sourceware.org/gcc/gcc-TEST/compare/trunk...redi:remove-predefined-ops