diff --git a/include/blah_vector.h b/include/blah_vector.h index 2940b64..048bd24 100644 --- a/include/blah_vector.h +++ b/include/blah_vector.h @@ -177,7 +177,7 @@ namespace Blah while (new_capacity < cap) new_capacity *= 2; - T* new_buffer = (T*)::operator new (sizeof(T) * new_capacity); + T* new_buffer = (T*)::operator new[] (sizeof(T) * new_capacity); if constexpr (std::is_trivially_copyable()) {