From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id D34D6385840C; Fri, 8 Oct 2021 14:00:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D34D6385840C MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r12-4252] libstdc++: Reduce header dependencies of in C++20 [PR 92546] X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: a23653c6a683d6a1bb1278aaa32e35247d8c2740 X-Git-Newrev: a1fc4075fcdf028f2e1dc00ce515a947127e2667 Message-Id: <20211008140015.D34D6385840C@sourceware.org> Date: Fri, 8 Oct 2021 14:00:15 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2021 14:00:15 -0000 https://gcc.gnu.org/g:a1fc4075fcdf028f2e1dc00ce515a947127e2667 commit r12-4252-ga1fc4075fcdf028f2e1dc00ce515a947127e2667 Author: Jonathan Wakely Date: Thu Apr 8 10:01:08 2021 +0100 libstdc++: Reduce header dependencies of in C++20 [PR 92546] The header doesn't need the stream and streambuf iterators, so don't include the whole of . libstdc++-v3/ChangeLog: PR libstdc++/92546 * include/bits/ranges_algobase.h: Replace with a subset of the headers it includes. Diff: --- libstdc++-v3/include/bits/ranges_algobase.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/include/bits/ranges_algobase.h b/libstdc++-v3/include/bits/ranges_algobase.h index cfbac839749..c8c4d032983 100644 --- a/libstdc++-v3/include/bits/ranges_algobase.h +++ b/libstdc++-v3/include/bits/ranges_algobase.h @@ -33,7 +33,9 @@ #if __cplusplus > 201703L #include -#include +#include +#include +#include #include // ranges::begin, ranges::range etc. #include // __invoke #include // __is_byte