From a850ffbe469af2fdde53f74c28a290455d97d98e Mon Sep 17 00:00:00 2001 From: Peter Kasting Date: Tue, 8 Jun 2021 13:47:31 -0700 Subject: [PATCH] Fix clang -Wdeprecated-copy. The copy constructor must be explicitly defined (here, defaulted) to be available when the assignment operator is deleted. While there is a templated constructor from VmaStlAlloc, the compiler doesn't consider this to be a "copy" constructor for purposes of the warning. --- include/vk_mem_alloc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index 49793f55..8ba0fe99 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -4963,6 +4963,7 @@ class VmaStlAllocator } VmaStlAllocator& operator=(const VmaStlAllocator& x) = delete; + VmaStlAllocator(const VmaStlAllocator&) = default; }; #if VMA_USE_STL_VECTOR