clang on macOS didn't like sized ::operator delete

replaced with `::operator delete[]`
This commit is contained in:
Noel Berry 2023-03-10 10:17:57 -08:00 committed by GitHub
parent 746330f763
commit f5db7a37fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,7 +148,7 @@ namespace Blah
{ {
clear(); clear();
::operator delete (m_buffer, sizeof(T) * m_capacity); ::operator delete[] (m_buffer);
m_capacity = 0; m_capacity = 0;
m_buffer = nullptr; 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_buffer = new_buffer;
m_capacity = new_capacity; m_capacity = new_capacity;
@ -358,4 +358,4 @@ namespace Blah
m_count--; m_count--;
return value; return value;
} }
} }