public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r13-777] libstdc++: Remove some unnecessary includes Date: Thu, 26 May 2022 12:35:39 +0000 (GMT) [thread overview] Message-ID: <20220526123539.66D0238344DA@sourceware.org> (raw) https://gcc.gnu.org/g:650eadd63022baf6993124d7e9b64141b908459a commit r13-777-g650eadd63022baf6993124d7e9b64141b908459a Author: Jonathan Wakely <jwakely@redhat.com> Date: Tue May 24 12:15:00 2022 +0100 libstdc++: Remove some unnecessary includes 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. Diff: --- libstdc++-v3/include/bits/ranges_algobase.h | 1 - libstdc++-v3/include/std/string | 1 - libstdc++-v3/include/std/variant | 1 - 3 files changed, 3 deletions(-) diff --git a/libstdc++-v3/include/bits/ranges_algobase.h b/libstdc++-v3/include/bits/ranges_algobase.h index 1bbc44fc668..f6f0b9c83b0 100644 --- a/libstdc++-v3/include/bits/ranges_algobase.h +++ b/libstdc++-v3/include/bits/ranges_algobase.h @@ -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. diff --git a/libstdc++-v3/include/std/string b/libstdc++-v3/include/std/string index 24051663f74..4a0633067bd 100644 --- a/libstdc++-v3/include/std/string +++ b/libstdc++-v3/include/std/string @@ -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 diff --git a/libstdc++-v3/include/std/variant b/libstdc++-v3/include/std/variant index beed396fccb..c5f25ef6b47 100644 --- a/libstdc++-v3/include/std/variant +++ b/libstdc++-v3/include/std/variant @@ -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
reply other threads:[~2022-05-26 12:35 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220526123539.66D0238344DA@sourceware.org \ --to=redi@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).