mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-25 16:18:57 +08:00
use ::operator new[] to match ::operator delete[]
This commit is contained in:
parent
f5db7a37fc
commit
9fcd76a959
|
@ -177,7 +177,7 @@ namespace Blah
|
||||||
while (new_capacity < cap)
|
while (new_capacity < cap)
|
||||||
new_capacity *= 2;
|
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<T>())
|
if constexpr (std::is_trivially_copyable<T>())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user