]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Implement LWG 3470 change to ranges::subrange
authorPatrick Palka <ppalka@redhat.com>
Tue, 19 Oct 2021 22:07:05 +0000 (18:07 -0400)
committerPatrick Palka <ppalka@redhat.com>
Tue, 12 Apr 2022 12:37:27 +0000 (08:37 -0400)
commit06309012df200d8028f2985665b7843dca70ec81
treedc760970bbda11c18775f4b1760c9a02488ccaef
parentedf73cf05a9544df77fbcdd27e1465fcaa08b343
libstdc++: Implement LWG 3470 change to ranges::subrange

libstdc++-v3/ChangeLog:

* include/bits/ranges_util.h
(__detail::__uses_nonqualification_pointer_conversion): Define
and use it ...
(__detail::__convertible_to_nonslicing): ... here, as per LWG 3470.
* testsuite/std/ranges/subrange/1.cc: New test.

(cherry picked from commit 98af6b86bc6cac705474c14bb3f9748f6866c859)
libstdc++-v3/include/bits/ranges_util.h
libstdc++-v3/testsuite/std/ranges/subrange/1.cc [new file with mode: 0644]