mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 03:47:02 -05:00
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>
file: libstdc++-v3/README New users may wish to point their web browsers to the file index.html in the 'doc/html' subdirectory. It contains brief building instructions and notes on how to configure the library in interesting ways.