gcc/libstdc++-v3/testsuite
Jonathan Wakely 118158b646 libstdc++: Fix __gnu_test::input_iterator_wrapper::operator++(int)
I noticed recently that our input_iterator_wrapper utility for writing
tests has the following post-increment operator:

    void
    operator++(int)
    {
      ++*this;
    }

That fails to meet the Cpp17InputIterator requirement that *r++ is
valid. This change makes it return a non-void proxy type that can be
deferenced to produce another proxy, which is convertible to the
value_type. The second proxy converts to const T& to ensure it can't be
written to.

	* testsuite/util/testsuite_iterators.h:
	(input_iterator_wrapper::operator++(int)): Return proxy object.
2020-06-01 18:30:47 +01:00
..
17_intro
18_support libstdc++: Add new testcase for comparison category types 2020-05-27 13:14:17 +01:00
19_diagnostics
20_util c++: Explain fn template argument type/value mismatches [PR66439] 2020-05-18 23:50:14 -04:00
21_strings
22_locale
23_containers
24_iterators libstdc++: Fix std::reverse_iterator comparisons (PR 94354) 2020-05-27 21:58:56 +01:00
25_algorithms libstdc++: Fix function that can't be constexpr in C++11 (PR 95289) 2020-05-23 18:27:35 +01:00
26_numerics libstdc++: Use RDRAND as fallback if RDSEED keeps failing (PR 94087) 2020-05-19 23:04:45 +01:00
27_io libstdc++: Simplify filesystem::path SFINAE constraints 2020-05-23 09:40:16 +01:00
28_regex
29_atomics libstdc++: Fix atomic<FP>::load (PR 95282) 2020-05-27 22:55:21 +01:00
30_threads
abi
backward
config
data
decimal
experimental libstdc++: Fix net::basic_socket::close(error_code&) 2020-05-21 00:59:55 +01:00
ext
lib
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters
libstdc++-xmethods
performance
special_functions
std libstdc++: Fix view adaptors for mixed-const sentinels and iterators (PR 95322) 2020-05-27 22:08:15 +01:00
tr1
tr2
util libstdc++: Fix __gnu_test::input_iterator_wrapper::operator++(int) 2020-06-01 18:30:47 +01:00
Makefile.am libstdc++: Enable simple invocation of runtest in testsuite 2020-05-21 14:16:19 +01:00
Makefile.in libstdc++: Enable simple invocation of runtest in testsuite 2020-05-21 14:16:19 +01:00