]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Reduce header dependencies in <iterator>
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 May 2019 12:47:39 +0000 (12:47 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 May 2019 12:47:39 +0000 (12:47 +0000)
* include/std/iterator: Include <iosfwd> instead of <istream> and
<ostream>.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@271169 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/iterator

index 808af37a374fa0e39d8ff1997ed75b5efccb719d..5d173a5bbde80c38403e8d1ddda70d83c0c6beca 100644 (file)
@@ -1,5 +1,8 @@
 2019-05-14  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/std/iterator: Include <iosfwd> instead of <istream> and
+       <ostream>.
+
        * include/bits/stl_tree.h (_Rb_tree::erase(const Key*, const Key*)):
        Remove unused, non-standard function.
 
index 9d9e19c4c6bb67fe8eba1085d6e158d1ec2a3ae1..28e7c65a9e579814453ea8891fdabf96c0f04aad 100644 (file)
@@ -61,8 +61,7 @@
 #include <bits/stl_iterator_base_types.h>
 #include <bits/stl_iterator_base_funcs.h>
 #include <bits/stl_iterator.h>
-#include <ostream>
-#include <istream>
+#include <iosfwd>
 #include <bits/stream_iterator.h>
 #include <bits/streambuf_iterator.h>
 #include <bits/range_access.h>