gcc/libstdc++-v3/testsuite
Jonathan Wakely a186ab670e libstdc++: Make structured bindings always work for subranges [PR 97512]
The definition of ranges::subrange was moved to the new
<bits/ranges_util.h> header so that it could be used in <algorithm>
without including the whole of <ranges>. However, the tuple-like support
that enables subrange to be used with structured bindings was left in
<ranges>. This is arguably conforming (to use a subrange you should
include <ranges>) but it's inconvenient and probably confusing.

This change makes the tuple-like support available whenever subrange
itself is available.

libstdc++-v3/ChangeLog:

	PR libstdc++/97512
	* include/bits/ranges_util.h (tuple_size<subrange>)
	(tuple_element<I, cv subrange>): Move here from ...
	* include/std/ranges: ... here.
	* testsuite/std/ranges/subrange/97512.cc: New test.
2020-10-21 14:40:54 +01:00
..
17_intro libstdc++: Replace use of reserved name that clashes [PR 97362] 2020-10-10 21:22:12 +01:00
18_support libstdc++: Define noop coroutine details private and inline [PR 95917] 2020-10-20 11:37:48 +01:00
19_diagnostics libstdc++: Ensure c++NN effective target present in all C++17 tests 2020-07-31 19:58:02 +01:00
20_util libstdc++: Implement std::make_unique_for_overwrite 2020-10-19 22:11:39 +01:00
21_strings Convert -Wrestrict pass to ranger. 2020-10-20 20:46:08 +02:00
22_locale
23_containers libstdc++: Remove overzealous static_asserts from std::span 2020-09-21 23:21:34 -04:00
24_iterators libstdc++: Add missing P0896 changes to <iterator> 2020-10-02 10:51:31 -04:00
25_algorithms libstdc++: Fix division by zero in std::sample 2020-09-21 20:48:23 -04:00
26_numerics libstdc++: Fix incorrect results in std::seed_seq::generate [PR 97311] 2020-10-09 16:58:32 +01:00
27_io libstdc++: Enable tests that incorrectly require cxx11-abi 2020-10-14 12:52:46 +01:00
28_regex libstdc++: Ensure c++NN effective-target present in more tests 2020-07-31 19:58:03 +01:00
29_atomics libstdc++: Change test to work without 64-bit atomics 2020-10-02 22:18:51 +01:00
30_threads libstdc++: Use correct duration for atomic_futex wait on custom clock [PR 91486] 2020-10-05 11:32:10 +01:00
abi
backward
config
data
decimal
experimental libstdc++: Optimise GCD algorithms 2020-09-03 12:46:13 +01:00
ext
lib libstdc++: Improve comments for check_effective_target_cxx11-abi 2020-10-14 12:52:47 +01:00
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters libstdc++: Remove inheritance from elements in std::tuple 2020-08-17 15:27:51 +01:00
libstdc++-xmethods
performance libstdc++: Add performance test for <random> 2020-10-09 14:01:54 +01:00
special_functions
std libstdc++: Make structured bindings always work for subranges [PR 97512] 2020-10-21 14:40:54 +01:00
tr1 libstdc++: Ensure c++NN effective-target present in more tests 2020-07-31 19:58:03 +01:00
tr2
util libstdc++: Fix unused variable warning 2020-10-09 11:53:08 +01:00
Makefile.am libstdc++: Adjust variable export in makefile 2020-10-09 14:08:42 +01:00
Makefile.in libstdc++: Adjust variable export in makefile 2020-10-09 14:08:42 +01:00