Merge pull request #2 from AKholetsky/master

Fixed lost capacity and incorrect method name
This commit is contained in:
Noel Berry
2020-10-24 10:28:18 -07:00
committed by GitHub

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>