commit bd1eb556b910fd4853ea83291e495d40adbcdf81 Author: Jonathan Wakely Date: Tue Jul 13 12:09:37 2021 libstdc++: Remove duplicate #include in When I added the new C++23 constructor I added a conditional include of , which was already being included unconditionally. This removes the unconditional include but changes the condition for the other one, so it's used for C++20 as well. Signed-off-by: Jonathan Wakely libstdc++-v3/ChangeLog: * include/std/string_view: Only include once, and only for C++20 and later. diff --git a/libstdc++-v3/include/std/string_view b/libstdc++-v3/include/std/string_view index 33e2129383a..cfdcf28f026 100644 --- a/libstdc++-v3/include/std/string_view +++ b/libstdc++-v3/include/std/string_view @@ -41,11 +41,10 @@ #include #include #include -#include #include #include -#if __cplusplus > 202002L +#if __cplusplus >= 202002L # include #endif