aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-10-25 18:02:43 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2019-10-25 18:02:43 +0100
commit0a70fb8750ecb24f57066a9249acf7cf6bf6958d (patch)
treee14ad0de3925717e4b25fa61cbd1ce56271d6c54 /gcc
parenteadcde8e8f53c950fc17b52fd33adda40d28f7af (diff)
downloadgcc-0a70fb8750ecb24f57066a9249acf7cf6bf6958d.zip
gcc-0a70fb8750ecb24f57066a9249acf7cf6bf6958d.tar.gz
gcc-0a70fb8750ecb24f57066a9249acf7cf6bf6958d.tar.bz2
Use implicitly-defined copy operations for test iterators
All of these special member functions do exactly what the compiler would do anyway. By defining them as defaulted for C++11 and later we prevent move constructors and move assignment operators being defined (which is consistent with the previous semantics). Also move default init of the input_iterator_wrapper members from the derived constructor to the protected base constructor. * testsuite/util/testsuite_iterators.h (output_iterator_wrapper) (input_iterator_wrapper, forward_iterator_wrapper) bidirectional_iterator_wrapper, random_access_iterator_wrapper): Remove user-provided copy constructors and copy assignment operators so they are defined implicitly. (input_iterator_wrapper): Initialize members in default constructor. (forward_iterator_wrapper): Remove assignments to members of base. From-SVN: r277459
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions