aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-09-15 18:21:32 +0100
committerJonathan Wakely <jwakely@redhat.com>2022-09-15 23:57:32 +0100
commitd6ccad7641da10d9c5f1f6cfc676d5f5b9d2d126 (patch)
tree6ee1ea0934e7bdb3c8d9151bf669c18d86cb0798
parent2b75d5f533b9d6b39f4055949aff64ed0d22dd24 (diff)
downloadgcc-d6ccad7641da10d9c5f1f6cfc676d5f5b9d2d126.zip
gcc-d6ccad7641da10d9c5f1f6cfc676d5f5b9d2d126.tar.gz
gcc-d6ccad7641da10d9c5f1f6cfc676d5f5b9d2d126.tar.bz2
libstdc++: Remove unnecessary header from <memory>
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>.
-rw-r--r--libstdc++-v3/include/std/memory1
1 files changed, 0 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/memory b/libstdc++-v3/include/std/memory
index 481fa42..20a5502 100644
--- a/libstdc++-v3/include/std/memory
+++ b/libstdc++-v3/include/std/memory
@@ -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>