From f5db7a37fc7b16efa57b0cfae9c4fe98d391e9eb Mon Sep 17 00:00:00 2001 From: Noel Berry Date: Fri, 10 Mar 2023 10:17:57 -0800 Subject: [PATCH] clang on macOS didn't like sized ::operator delete replaced with `::operator delete[]` --- include/blah_vector.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/blah_vector.h b/include/blah_vector.h index 986ec0d..2940b64 100644 --- a/include/blah_vector.h +++ b/include/blah_vector.h @@ -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; @@ -358,4 +358,4 @@ namespace Blah m_count--; return value; } -} \ No newline at end of file +}