]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Fix headers that can't be used as header units [PR 99413]
authorJonathan Wakely <jwakely@redhat.com>
Wed, 10 Mar 2021 15:27:41 +0000 (15:27 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 10 Mar 2021 15:27:41 +0000 (15:27 +0000)
commit47cca0288d06bd851e5801d13bbee7d9374b685d
tree8b285dd460ea4daa307cbf0d9483e92b77129252
parentdddd011113b6ceede733d7ae33eca695c06b181b
libstdc++: Fix headers that can't be used as header units [PR 99413]

This adds missing includes to internal library headers which get
included from more than one other header, so that they can be compiled
as a stand-alone header unit.

For existing use cases these includes are no-ops because they're already
done by the header that includes these files. For compiling them as a
header unit, this ensures that they include what they use.

libstdc++-v3/ChangeLog:

PR libstdc++/99413
* include/bits/align.h: Include debug/assertions.h.
* include/bits/codecvt.h: Include bits/c++config.h.
* include/bits/enable_special_members.h: Likewise.
* include/bits/erase_if.h: Likewise.
* include/bits/functional_hash.h: Include <type_traits>.
* include/bits/invoke.h: Include bits/move.h.
* include/bits/ostream_insert.h: Include bits/exception_defines.h.
* include/bits/parse_numbers.h: Include <type_traits>.
* include/bits/predefined_ops.h: Include bits/c++config.h.
* include/bits/range_access.h: Include bits/stl_iterator.h.
* include/bits/stl_bvector.h: Do not include bits/stl_vector.h.
* include/bits/stl_iterator.h: Include bits/stl_iterator_base_types.h.
* include/bits/stl_uninitialized.h: Include bits/stl_algobase.h.
* include/bits/uniform_int_dist.h: Include bits/concept_check.h.
* include/bits/unique_lock.h: Include bits/std_mutex.h.
* include/debug/assertions.h: Include bits/c++config.h.
16 files changed:
libstdc++-v3/include/bits/align.h
libstdc++-v3/include/bits/codecvt.h
libstdc++-v3/include/bits/enable_special_members.h
libstdc++-v3/include/bits/erase_if.h
libstdc++-v3/include/bits/functional_hash.h
libstdc++-v3/include/bits/invoke.h
libstdc++-v3/include/bits/ostream_insert.h
libstdc++-v3/include/bits/parse_numbers.h
libstdc++-v3/include/bits/predefined_ops.h
libstdc++-v3/include/bits/range_access.h
libstdc++-v3/include/bits/stl_bvector.h
libstdc++-v3/include/bits/stl_iterator.h
libstdc++-v3/include/bits/stl_uninitialized.h
libstdc++-v3/include/bits/uniform_int_dist.h
libstdc++-v3/include/bits/unique_lock.h
libstdc++-v3/include/debug/assertions.h
This page took 0.065347 seconds and 6 git commands to generate.