]> gcc.gnu.org Git - gcc.git/commitdiff
libstdc++: Remove duplicate include header from ranges_algobase.h
authorMichael Levine <mlevine55@bloomberg.net>
Tue, 23 Jul 2024 11:50:31 +0000 (12:50 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 24 Jul 2024 16:18:04 +0000 (17:18 +0100)
The bits/stl_algobase.h header was added to bits/ranges_algobase.h
separately through two related commits:
r15-1106-g674d213ab91871
r15-1117-g0bb1db32ccf54a

The comment for the first time it is included in the file is also
incorrect (my error from that 2nd one) since it is really being included
for __memcmp, not __memcpy

This patch removes the duplicate header include.

libstdc++-v3/ChangeLog:

* include/bits/ranges_algobase.h: Remove duplicate include of
<bits/stl_algobase.h>.

Signed-off-by: Michael Levine <mlevine55@bloomberg.net>
libstdc++-v3/include/bits/ranges_algobase.h

index 7ce5ac314f252dab46a4549ef1f1e7f10d07242b..fd35b8ba14cb36dada142f5d33e0f68618af03f1 100644 (file)
@@ -35,7 +35,6 @@
 #include <compare>
 #include <bits/stl_iterator_base_funcs.h>
 #include <bits/stl_iterator.h>
-#include <bits/stl_algobase.h> // __memcpy
 #include <bits/ranges_base.h> // ranges::begin, ranges::range etc.
 #include <bits/invoke.h>      // __invoke
 #include <bits/cpp_type_traits.h> // __is_byte
This page took 0.056858 seconds and 5 git commands to generate.