diff options
| author | Patrick Palka <ppalka@redhat.com> | 2025-12-05 12:16:30 -0500 |
|---|---|---|
| committer | Patrick Palka <ppalka@redhat.com> | 2025-12-05 12:16:30 -0500 |
| commit | 5a2a527b26c22df4f1764f61b2285ac0c380ff68 (patch) | |
| tree | 8ab48129361953c536b8906c4387a82bfb5e83d7 /libcpp/generated_cpp_wcwidth.h | |
| parent | b212314667d4cf636c7728d2c91f028c516e7df8 (diff) | |
| download | gcc-5a2a527b26c22df4f1764f61b2285ac0c380ff68.zip gcc-5a2a527b26c22df4f1764f61b2285ac0c380ff68.tar.gz gcc-5a2a527b26c22df4f1764f61b2285ac0c380ff68.tar.bz2 | |
libstdc++: Use deducing this in range adaptors even in C++20 [PR111550]
Use deducing this to implement perfect forwarding even in C++20 mode
by using the _GLIBCXX_EXPLICIT_THIS_PARAMETER internal FTM instead of
the standard __cpp_explicit_this_parameter. This fixes the original
testcase from this PR even in C++20 mode.
PR libstdc++/111550
libstdc++-v3/ChangeLog:
* include/std/ranges (views::__adaptor::_Partial::operator())
[_GLIBCXX_EXPLICIT_THIS_PARAMETER]: Also use deducing this
in C++20 mode when possible.
(views::__adaptor::_Pipe::Operator())
[_GLIBCXX_EXPLICIT_THIS_PARAMETER]: Likewise.
* testsuite/std/ranges/adaptors/take.cc (test07): New 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
