From a1fc4075fcdf028f2e1dc00ce515a947127e2667 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 8 Apr 2021 10:01:08 +0100 Subject: [PATCH] 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. --- 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