Fixed lost capacity and incorrect method name

This commit is contained in:
Anton Kholetsky 2020-10-22 11:03:22 +03:00
parent 05bce9cff6
commit e5579e7570

View File

@ -99,8 +99,8 @@ namespace Blah
List<T>::List(int capacity)
{
m_buffer = nullptr;
m_count = m_capacity = 0;
Reserve(m_capacity);
m_count = m_capacity = capacity;
reserve(m_capacity);
}
template<class T>