]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Avoid CTAD for std::ranges::join_view [LWG 3474]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 6 Oct 2020 08:41:16 +0000 (09:41 +0100)
committerPatrick Palka <ppalka@redhat.com>
Wed, 18 Nov 2020 15:35:24 +0000 (10:35 -0500)
commit175e6b47f268e871a4c84e006ed981ce048c4184
treebeca17a5042564688ac6dd198c3e9af81d27e917
parent3feea217fcc1d08e8542ef458ada3b4983ac17ba
libstdc++: Avoid CTAD for std::ranges::join_view [LWG 3474]

In commit ef275d1f2083f8a1fa1b59a3cd07fd3e8431023e I implemented the
wrong resolution of LWG 3474. This removes the deduction guide and
alters the views::join factory to create the right type explicitly.

libstdc++-v3/ChangeLog:

* include/std/ranges (join_view): Remove deduction guide.
(views::join): Add explicit template argument list to prevent
deducing the wrong type.
* testsuite/std/ranges/adaptors/join.cc: Move test for LWG 3474
here, from ...
* testsuite/std/ranges/adaptors/join_lwg3474.cc: Removed.

(cherry picked from commit 9065c4adab0b1280f5707d53833d195d0d350fd2)
libstdc++-v3/include/std/ranges
libstdc++-v3/testsuite/std/ranges/adaptors/join.cc
libstdc++-v3/testsuite/std/ranges/adaptors/join_lwg3474.cc [deleted file]
This page took 0.080089 seconds and 5 git commands to generate.