BLI: Fix VectorSet copy constructor

Thanks to Howard for pointing that out.
This commit is contained in:
Jacques Lucke 2020-05-20 15:47:32 +02:00
parent e1050fb395
commit 717577d5fc
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ template<typename T, typename Allocator = GuardedAllocator> class VectorSet {
VectorSet(const VectorSet &other) : m_array(other.m_array)
{
m_elements = this->allocate_elements_array(m_array.slots_usable());
copy_n(other.m_elements, m_array.slots_set(), m_elements);
uninitialized_copy_n(other.m_elements, m_array.slots_set(), m_elements);
}
VectorSet(VectorSet &&other) : m_array(std::move(other.m_array)), m_elements(other.m_elements)