[libcxx-commits] [libcxx] f51c915 - [libc++][NFC] Add a missing include in pre-C++14 language modes.

Konstantin Varlamov via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 17 17:15:50 PST 2022


Author: Konstantin Varlamov
Date: 2022-11-17T17:15:41-08:00
New Revision: f51c91532e24e5851e607be75772dbd4f5967f81

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

LOG: [libc++][NFC] Add a missing include in pre-C++14 language modes.

Added: 
    

Modified: 
    libcxx/include/__memory/swap_allocator.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__memory/swap_allocator.h b/libcxx/include/__memory/swap_allocator.h
index 836f23e360e88..c6e1751f4ddcd 100644
--- a/libcxx/include/__memory/swap_allocator.h
+++ b/libcxx/include/__memory/swap_allocator.h
@@ -12,6 +12,7 @@
 #include <__config>
 #include <__memory/allocator_traits.h>
 #include <__type_traits/integral_constant.h>
+#include <__type_traits/is_swappable.h>
 #include <__utility/swap.h>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)


        


More information about the libcxx-commits mailing list