list missing destructor call

should maybe just switch to std::vector .......
This commit is contained in:
Noel Berry 2020-10-19 00:48:17 -07:00
parent e89532e132
commit bf03bc815d

View File

@ -179,7 +179,10 @@ namespace Blah
else
{
for (int n = 0; n < m_count; n++)
{
new (new_buffer + n) T(std::move(m_buffer[n]));
m_buffer[n].~T();
}
}
::operator delete (m_buffer, sizeof(T) * last_capacity);