libstdc++: Implement LWG 3404 for C++20 subrange [PR 100044]
authorJonathan Wakely <jwakely@redhat.com>
Mon, 12 Apr 2021 11:49:17 +0000 (12:49 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 12 Apr 2021 12:31:17 +0000 (13:31 +0100)
commit7569ce583f540ae22c585cc5159e3b23deedd987
tree2060c4af90d8c20e0f6fadd6f8e34af0c1f10456
parent1c35444b919683be23208479312a45e73d23ed35
libstdc++: Implement LWG 3404 for C++20 subrange [PR 100044]

These deduction guides became useless with LWG 3282 (implemented in
commit r10-6741) and so were removed by LWG 3404.

libstdc++-v3/ChangeLog:

PR libstdc++/100044
* include/bits/ranges_util.h (__detail::__iterator_sentinel_pair):
Remove helper concept.
(subrange(_Pr), subrange(Pr, __make_unsigned_like<...>)): Remove
deduction guides, as per LWG 3404.
* testsuite/std/ranges/subrange/lwg3282_neg.cc: Check that class
template argument deduction fails.
libstdc++-v3/include/bits/ranges_util.h
libstdc++-v3/testsuite/std/ranges/subrange/lwg3282_neg.cc