mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-28 16:58:57 +08:00
clang on macOS didn't like sized ::operator delete
replaced with `::operator delete[]`
This commit is contained in:
parent
746330f763
commit
f5db7a37fc
|
@ -148,7 +148,7 @@ namespace Blah
|
|||
{
|
||||
clear();
|
||||
|
||||
::operator delete (m_buffer, sizeof(T) * m_capacity);
|
||||
::operator delete[] (m_buffer);
|
||||
|
||||
m_capacity = 0;
|
||||
m_buffer = nullptr;
|
||||
|
@ -196,7 +196,7 @@ namespace Blah
|
|||
}
|
||||
}
|
||||
|
||||
::operator delete (m_buffer, sizeof(T) * m_capacity);
|
||||
::operator delete[] (m_buffer);
|
||||
|
||||
m_buffer = new_buffer;
|
||||
m_capacity = new_capacity;
|
||||
|
|
Loading…
Reference in New Issue
Block a user