]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove unnecessary header from <memory>
authorJonathan Wakely <jwakely@redhat.com>
Thu, 15 Sep 2022 17:21:32 +0000 (18:21 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 24 Nov 2022 13:51:51 +0000 (13:51 +0000)
Previously <memory> included <bits/stl_algobase.h> so that std::copy,
std::fill etc. could be used by <bits/stl_uninitialized.h>. But that
includes it explicitly now, so that it can be compiled as a header unit.
There's no need to include it in <memory>, where its purpose isn't
obvious.

libstdc++-v3/ChangeLog:

* include/std/memory: Do not include <bits/stl_algobase.h>.

(cherry picked from commit d6ccad7641da10d9c5f1f6cfc676d5f5b9d2d126)

libstdc++-v3/include/std/memory

index 481fa42a6188e40a6daf88d5fd53f56feb7e3c50..20a55020a36f6d1589f077af689fe25c06829ea0 100644 (file)
@@ -60,7 +60,6 @@
  * Smart pointers, etc.
  */
 
-#include <bits/stl_algobase.h>
 #include <bits/allocator.h>
 #include <bits/stl_construct.h>
 #include <bits/stl_uninitialized.h>