mirror of
https://github.com/NoelFB/blah.git
synced 2025-04-06 00:26:05 +08:00
list missing destructor call
should maybe just switch to std::vector .......
This commit is contained in:
parent
e89532e132
commit
bf03bc815d
@ -179,7 +179,10 @@ namespace Blah
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
for (int n = 0; n < m_count; n++)
|
for (int n = 0; n < m_count; n++)
|
||||||
|
{
|
||||||
new (new_buffer + n) T(std::move(m_buffer[n]));
|
new (new_buffer + n) T(std::move(m_buffer[n]));
|
||||||
|
m_buffer[n].~T();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
::operator delete (m_buffer, sizeof(T) * last_capacity);
|
::operator delete (m_buffer, sizeof(T) * last_capacity);
|
||||||
|
Loading…
Reference in New Issue
Block a user