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
commit 06052410f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>