mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
libstdc++: Remove duplicate #include in <string_view>
When I added the new C++23 constructor I added a conditional include of <bits/ranges_base.h>, 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 <jwakely@redhat.com> libstdc++-v3/ChangeLog: * include/std/string_view: Only include <bits/ranges_base.h> once, and only for C++20 and later.
This commit is contained in:
@@ -41,11 +41,10 @@
|
||||
#include <bits/char_traits.h>
|
||||
#include <bits/functional_hash.h>
|
||||
#include <bits/range_access.h>
|
||||
#include <bits/ranges_base.h>
|
||||
#include <bits/ostream_insert.h>
|
||||
#include <ext/numeric_traits.h>
|
||||
|
||||
#if __cplusplus > 202002L
|
||||
#if __cplusplus >= 202002L
|
||||
# include <bits/ranges_base.h>
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user