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();
::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;