https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111327
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Patrick Palka <[email protected]>: https://gcc.gnu.org/g:756e32a160ed353709b70e36c32edb5edffc0865 commit r16-5916-g756e32a160ed353709b70e36c32edb5edffc0865 Author: Patrick Palka <[email protected]> Date: Fri Dec 5 12:14:23 2025 -0500 libstdc++: Use deducing this in std::not_fn when available [PR111327] Implement the perfect forwarding required by std::not_fn using deducing this when available, instead of needing 8 operator() overloads. This also fixes Jiang An's test from this PR which would be messy to fix in the old implementation. PR libstdc++/111327 libstdc++-v3/ChangeLog: * include/std/functional (_Not_fn::operator()) [_GLIBCXX_EXPLICIT_THIS_PARAMETER]: Define as a single overload using deducing this. * testsuite/20_util/function_objects/not_fn/111327.cc: Extend test. Reviewed-by: Tomasz KamiÅski <[email protected]> Reviewed-by: Jonathan Wakely <[email protected]>
