[gcc r13-2692] libstdc++: Remove unnecessary header from <memory>

Jonathan Wakely redi@gcc.gnu.org
Thu Sep 15 22:58:41 GMT 2022


https://gcc.gnu.org/g:d6ccad7641da10d9c5f1f6cfc676d5f5b9d2d126

commit r13-2692-gd6ccad7641da10d9c5f1f6cfc676d5f5b9d2d126
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu Sep 15 18:21:32 2022 +0100

    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>.

Diff:
---
 libstdc++-v3/include/std/memory | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libstdc++-v3/include/std/memory b/libstdc++-v3/include/std/memory
index 481fa42a618..20a55020a36 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>


More information about the Libstdc++-cvs mailing list