mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-14 16:58:34 +00:00
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<U>, the compiler doesn't consider this to be a "copy" constructor for purposes of the warning.
This commit is contained in:
parent
4a132e510c
commit
a850ffbe46
1 changed files with 1 additions and 0 deletions
|
@ -4963,6 +4963,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
VmaStlAllocator& operator=(const VmaStlAllocator& x) = delete;
|
VmaStlAllocator& operator=(const VmaStlAllocator& x) = delete;
|
||||||
|
VmaStlAllocator(const VmaStlAllocator&) = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if VMA_USE_STL_VECTOR
|
#if VMA_USE_STL_VECTOR
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue