aboutsummaryrefslogtreecommitdiff
path: root/libcpp/generated_cpp_wcwidth.h
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2025-12-05 12:14:23 -0500
committerPatrick Palka <ppalka@redhat.com>2025-12-05 12:14:23 -0500
commit756e32a160ed353709b70e36c32edb5edffc0865 (patch)
tree08661ccfa5002df4c9cd4624f5c8dc2bbe040299 /libcpp/generated_cpp_wcwidth.h
parent101f96847629850edbdfceb11b363770be4fd69d (diff)
downloadgcc-756e32a160ed353709b70e36c32edb5edffc0865.zip
gcc-756e32a160ed353709b70e36c32edb5edffc0865.tar.gz
gcc-756e32a160ed353709b70e36c32edb5edffc0865.tar.bz2
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 <tkaminsk@redhat.com> Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
Diffstat (limited to 'libcpp/generated_cpp_wcwidth.h')
0 files changed, 0 insertions, 0 deletions