libstdc++: Remove some unnecessary includes
authorJonathan Wakely <jwakely@redhat.com>
Tue, 24 May 2022 11:15:00 +0000 (12:15 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 26 May 2022 09:44:45 +0000 (10:44 +0100)
These headers do not use anything in <bits/stl_iterator_base_types.h>
directly, and it's included by <bits/stl_iterator_base_funcs.h> and
<bits/stl_iterator.h> anyway, because they do need it.

libstdc++-v3/ChangeLog:

* include/bits/ranges_algobase.h: Do not include
<bits/stl_iterator_base_types.h>.
* include/std/string: Likewise.
* include/std/variant: Likewise.

libstdc++-v3/include/bits/ranges_algobase.h
libstdc++-v3/include/std/string
libstdc++-v3/include/std/variant

index 1bbc44f..f6f0b9c 100644 (file)
@@ -33,7 +33,6 @@
 #if __cplusplus > 201703L
 
 #include <compare>
-#include <bits/stl_iterator_base_types.h>
 #include <bits/stl_iterator_base_funcs.h>
 #include <bits/stl_iterator.h>
 #include <bits/ranges_base.h> // ranges::begin, ranges::range etc.
index 2405166..4a06330 100644 (file)
@@ -42,7 +42,6 @@
 #include <bits/cpp_type_traits.h>
 #include <bits/localefwd.h>    // For operators >>, <<, and getline.
 #include <bits/ostream_insert.h>
-#include <bits/stl_iterator_base_types.h>
 #include <bits/stl_iterator_base_funcs.h>
 #include <bits/stl_iterator.h>
 #include <bits/stl_function.h> // For less
index beed396..c5f25ef 100644 (file)
@@ -40,7 +40,6 @@
 #include <bits/functional_hash.h>
 #include <bits/invoke.h>
 #include <bits/parse_numbers.h>
-#include <bits/stl_iterator_base_types.h>
 #include <bits/stl_iterator_base_funcs.h>
 #include <bits/stl_construct.h>
 #include <bits/utility.h> // in_place_index_t