[libcxx-commits] [libcxx] b125392 - [libc++] NFC: Move unused include of <limits> to allocator_traits.h

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Apr 9 12:32:04 PDT 2021


Author: Louis Dionne
Date: 2021-04-09T15:31:55-04:00
New Revision: b12539225930dd2738a79ac9eec455e63413ab91

URL: https://github.com/llvm/llvm-project/commit/b12539225930dd2738a79ac9eec455e63413ab91
DIFF: https://github.com/llvm/llvm-project/commit/b12539225930dd2738a79ac9eec455e63413ab91.diff

LOG: [libc++] NFC: Move unused include of <limits> to allocator_traits.h

The include should have been moved when I split allocator_traits.h out
of memory.

Added: 
    

Modified: 
    libcxx/include/__memory/allocator_traits.h
    libcxx/include/memory

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__memory/allocator_traits.h b/libcxx/include/__memory/allocator_traits.h
index 9443f61b71bc7..be445351d7df5 100644
--- a/libcxx/include/__memory/allocator_traits.h
+++ b/libcxx/include/__memory/allocator_traits.h
@@ -13,6 +13,7 @@
 #include <__config>
 #include <__memory/base.h>
 #include <__memory/pointer_traits.h>
+#include <limits>
 #include <type_traits>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)

diff  --git a/libcxx/include/memory b/libcxx/include/memory
index d326476ca1fef..852824fa8066a 100644
--- a/libcxx/include/memory
+++ b/libcxx/include/memory
@@ -673,7 +673,6 @@ void* align(size_t alignment, size_t size, void*& ptr, size_t& space);
 #include <cstdint>
 #include <new>
 #include <utility>
-#include <limits>
 #include <iterator>
 #include <__functional_base>
 #include <iosfwd>


        


More information about the libcxx-commits mailing list