libstdc++: Fix chunk_by_view when value_type& and reference differ [PR108291]
authorPatrick Palka <ppalka@redhat.com>
Wed, 12 Apr 2023 16:10:23 +0000 (12:10 -0400)
committerPatrick Palka <ppalka@redhat.com>
Wed, 12 Apr 2023 16:10:23 +0000 (12:10 -0400)
commitae8f903632c930694640a925b042c87e3bdb7200
treed2e1c55222425f40749d2193dc03694d494c1228
parent31eb8f18bbe64613fd8d77c4520c00beeb13598f
libstdc++: Fix chunk_by_view when value_type& and reference differ [PR108291]

PR libstdc++/108291

libstdc++-v3/ChangeLog:

* include/std/ranges (chunk_by_view::_M_find_next): Generalize
parameter types of the lambda wrapper passed to adjacent_find.
(chunk_by_view::_M_find_prev): Likewise.
* testsuite/std/ranges/adaptors/chunk_by/1.cc (test04, test05):
New tests.
libstdc++-v3/include/std/ranges
libstdc++-v3/testsuite/std/ranges/adaptors/chunk_by/1.cc