Fix Vector::erase().

This commit is contained in:
Bartosz Taudul 2019-07-11 20:20:50 +02:00
parent a1ce5fc1f6
commit 29d8911c6b

View File

@ -176,7 +176,7 @@ public:
assert( m_capacity != std::numeric_limits<uint8_t>::max() );
assert( it >= m_ptr && it <= m_ptr + m_size );
m_size--;
memmove( it, it+1, m_size * sizeof( T ) );
memmove( it, it+1, ( m_size - ( it - m_ptr ) ) * sizeof( T ) );
return it;
}