]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Make more internal headers include their own dependencies
authorJonathan Wakely <jwakely@redhat.com>
Fri, 16 Sep 2022 09:49:54 +0000 (10:49 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 16 Sep 2022 20:23:24 +0000 (21:23 +0100)
commitd31e19e44009ef645f0a120043c7f84d0450b4c9
treeaaea9741fc94b6c00566ed2497061bc522395232
parent47deb1ef874c078ac51bc1970a3324f5c8002815
libstdc++: Make more internal headers include their own dependencies

This adds required headers to a few internal headers that currently
assume their deps will be included first. It's more robust to make them
include their own dependencies, so that later refactoring or reuse of
those headers in new contexts doesn't break.

libstdc++-v3/ChangeLog:

* include/bits/stl_algo.h: Include <bits/stl_algobase.h>.
* include/bits/stl_tempbuf.h: Include headers for __try and
__catch macros, std::pair, and __gnu_cxx::__numeric_traits.
* include/bits/stream_iterator.h: Include <iosfwd> and headers
for std::addressof and std::iterator.
* include/bits/streambuf_iterator.h: Include header for
std::iterator.
* include/std/iterator: Do not include <iosfwd>.
libstdc++-v3/include/bits/stl_algo.h
libstdc++-v3/include/bits/stl_tempbuf.h
libstdc++-v3/include/bits/stream_iterator.h
libstdc++-v3/include/bits/streambuf_iterator.h
libstdc++-v3/include/std/iterator