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)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 6 Oct 2020 08:41:40 +0000 (09:41 +0100)
commit9065c4adab0b1280f5707d53833d195d0d350fd2
tree021ba7a31fdf866d04c550a1e1b9d005acb39c54
parentbf510679bb3f9bfd6019666065016bb26a5b5466
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.
libstdc++-v3/include/std/ranges
libstdc++-v3/testsuite/std/ranges/adaptors/join.cc
libstdc++-v3/testsuite/std/ranges/adaptors/join_lwg3474.cc [deleted file]