gcc/libstdc++-v3/testsuite/std/ranges
Jonathan Wakely cda469a59e
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.
2024-07-10 22:05:21 +01:00
..
access c++: remove Concepts TS code 2024-07-10 15:38:48 -04:00
adaptors libstdc++: Allow adjacent __maybe_present_t<false, ...> fields to overlap 2024-04-02 13:07:07 -04:00
cartesian_product libstdc++: Implement P2540R1 change to views::cartesian_product() 2024-01-16 21:20:12 -05:00
concat libstdc++: Implement ranges::concat_view from P2542R7 2024-05-23 18:03:56 -04:00
conv libstdc++: Make ranges::to closure objects SFINAE-friendly [PR112802] 2023-12-18 18:05:36 -05:00
headers/ranges Update copyright years. 2024-01-03 12:19:35 +01:00
iota Update copyright years. 2024-01-03 12:19:35 +01:00
repeat libstdc++: Test for feature test macros more accurately 2023-11-16 08:06:59 +00:00
subrange Update copyright years. 2024-01-03 12:19:35 +01:00
zip libstdc++: Implement P2165R4 changes to std::pair/tuple/etc [PR113309] 2024-02-01 14:59:46 -05:00
zip_transform libstdc++: Remove dg-options "-std=gnu++23" from remaining tests 2023-09-15 21:57:40 +01:00
97600.cc Update copyright years. 2024-01-03 12:19:35 +01:00
empty_view.cc Update copyright years. 2024-01-03 12:19:35 +01:00
istream_view.cc Update copyright years. 2024-01-03 12:19:35 +01:00
p2259.cc Update copyright years. 2024-01-03 12:19:35 +01:00
p2325.cc libstdc++: Remove dg-options "-std=gnu++20" from <concepts> and <ranges> tests 2023-09-15 21:57:39 +01:00
p2367.cc Update copyright years. 2024-01-03 12:19:35 +01:00
range.cc libstdc++: ranges::find needs explicit conversion to size_t [PR115799] 2024-07-10 22:05:21 +01:00
range_adaptor_closure.cc libstdc++: Remove dg-options "-std=gnu++23" from remaining tests 2023-09-15 21:57:40 +01:00
refinements.cc Update copyright years. 2024-01-03 12:19:35 +01:00
safe_range.cc Update copyright years. 2024-01-03 12:19:35 +01:00
safe_range_types.cc Update copyright years. 2024-01-03 12:19:35 +01:00
single_view.cc Update copyright years. 2024-01-03 12:19:35 +01:00
sized.cc Update copyright years. 2024-01-03 12:19:35 +01:00
version_c++23.cc libstdc++: Implement P2836R1 changes to const_iterator 2024-01-15 15:13:53 -05:00
view.cc Update copyright years. 2024-01-03 12:19:35 +01:00