]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Make headers include their prerequisites
authorNathan Sidwell <nathan@acm.org>
Tue, 24 May 2022 09:17:18 +0000 (10:17 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 26 May 2022 09:44:45 +0000 (10:44 +0100)
These headers were relying on their includers having already included
some prerequisites.  That makes them unsuitable to be header-units.

So directly include the needed headers.

Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:

* include/bits/hashtable.h: Include required headers.
* include/bits/hashtable_policy.h: Likewise.
* include/bits/stl_heap.h: Likewise.
* include/bits/stl_iterator_base_funcs.h: Likewise.

libstdc++-v3/include/bits/hashtable.h
libstdc++-v3/include/bits/hashtable_policy.h
libstdc++-v3/include/bits/stl_heap.h
libstdc++-v3/include/bits/stl_iterator_base_funcs.h

index 5e1a417f7cda010002f65c763c29be75703ee380..edc151ef15b1d798e8bff29cd387cd54add0f9af 100644 (file)
@@ -37,6 +37,8 @@
 #if __cplusplus > 201402L
 # include <bits/node_handle.h>
 #endif
+#include <bits/functional_hash.h>
+#include <bits/stl_function.h> // equal_to, _Identity, _Select1st
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index 0f0b0f9ea51899460f9e0d75cbbe09c69262357d..799c3e986b45f727306a6fedbaf1608a19d1cbdc 100644 (file)
@@ -33,6 +33,8 @@
 
 #include <tuple>               // for std::tuple, std::forward_as_tuple
 #include <bits/stl_algobase.h> // for std::min, std::is_permutation.
+#include <ext/aligned_buffer.h>        // for __gnu_cxx::__aligned_buffer
+#include <ext/alloc_traits.h>  // for std::__alloc_rebind
 #include <ext/numeric_traits.h>        // for __gnu_cxx::__int_traits
 
 namespace std _GLIBCXX_VISIBILITY(default)
index 6e08f81c115e18061a666c7d9c7831e149c8041e..eee946c3818bf84736faa95ca09b8731449894c1 100644 (file)
@@ -58,6 +58,7 @@
 #include <debug/debug.h>
 #include <bits/move.h>
 #include <bits/predefined_ops.h>
+#include <bits/stl_iterator_base_funcs.h>
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index e9dc54cc6284772956138f3dc4e10f940dabd14a..1551b226ff4adab3580b3d95eb8b7ead1075ce88 100644 (file)
@@ -63,6 +63,7 @@
 
 #include <bits/concept_check.h>
 #include <debug/assertions.h>
+#include <bits/stl_iterator_base_types.h>
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {