]> git.ipfire.org Git - people/ms/gcc.git/commit
libstdc++: Remove duplicate #include in <string_view>
authorJonathan Wakely <jwakely@redhat.com>
Tue, 13 Jul 2021 11:09:37 +0000 (12:09 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 14 Jul 2021 14:59:49 +0000 (15:59 +0100)
commit760baa2de0e8a99c9e25e56dfe94ab95ed64ab6c
tree1279c38dc7dc6d1666b1020e9c4f002566f5919b
parentdf115674b39d4004252b7d5e41d9751f2b77b0d8
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.

(cherry picked from commit bd1eb556b910fd4853ea83291e495d40adbcdf81)
libstdc++-v3/include/std/string_view