aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-07-08 10:45:52 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2024-07-10 22:05:21 +0100
commitcda469a59e222496248025e0834a15d466f79d4a (patch)
tree99339a19ce69f9681522c7d6a424da80add2480c /gcc
parentaae535f3a870659d1f002f82bd585de0bcec7905 (diff)
downloadgcc-cda469a59e222496248025e0834a15d466f79d4a.zip
gcc-cda469a59e222496248025e0834a15d466f79d4a.tar.gz
gcc-cda469a59e222496248025e0834a15d466f79d4a.tar.bz2
libstdc++: ranges::find needs explicit conversion to size_t [PR115799]
For an integer-class type we need to use an explicit conversion to size_t. libstdc++-v3/ChangeLog: PR libstdc++/115799 * include/bits/ranges_util.h (__find_fn): Make conversion from difference type ti size_t explicit. * testsuite/25_algorithms/find/bytes.cc: Check ranges::find with __gnu_test::test_contiguous_range. * testsuite/std/ranges/range.cc: Adjust expected difference_type for __gnu_test::test_contiguous_range. * testsuite/util/testsuite_iterators.h (contiguous_iterator_wrapper): Use __max_diff_type as difference type. (test_range::sentinel, test_sized_range_sized_sent::sentinel): Ensure that operator- returns difference_type.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions