]> git.ipfire.org Git - thirdparty/gcc.git/commit
Use implicitly-defined copy operations for test iterators
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Oct 2019 17:02:43 +0000 (17:02 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Oct 2019 17:02:43 +0000 (17:02 +0000)
commit4badc652b89c6017b6aea801a9a3f348d64e9609
treee14ad0de3925717e4b25fa61cbd1ce56271d6c54
parent3c585034cfd1a1232067fc218715a45ce85bd487
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@277459 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/util/testsuite_iterators.h