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:
Peter Kasting 2021-06-08 13:47:31 -07:00
parent 4a132e510c
commit a850ffbe46

View File

@ -4963,6 +4963,7 @@ public:
}
VmaStlAllocator& operator=(const VmaStlAllocator& x) = delete;
VmaStlAllocator(const VmaStlAllocator&) = default;
};
#if VMA_USE_STL_VECTOR