1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Template fix

This commit is contained in:
Brian Fiete 2024-12-29 15:01:14 -08:00
parent 20006e8e0c
commit e288fca943
2 changed files with 14 additions and 14 deletions

View file

@ -378,7 +378,7 @@ protected:
void Grow(intptr newSize)
{
T* newVals = allocate<T>(newSize);
T* newVals = TAlloc::template allocate<T>(newSize);
if (this->mVals != NULL)
{
if (this->mSize > 0)
@ -533,7 +533,7 @@ public:
{
intptr newSize = this->mAllocSize + this->mAllocSize / 2 + 1;
T* newVals = allocate<T>(newSize);
T* newVals = TAlloc::template allocate<T>(newSize);
if (this->mVals != NULL)
{
if (idx > 0) // Copy left of idx
@ -562,7 +562,7 @@ public:
{
intptr newSize = BF_MAX(this->mSize + size, this->mAllocSize + this->mAllocSize / 2 + 1);
T* newVals = allocate<T>(newSize);
T* newVals = TAlloc::template allocate<T>(newSize);
if (this->mVals != NULL)
{
if (idx > 0) // Copy left of idx
@ -638,7 +638,7 @@ public:
protected:
void Grow(intptr newSize)
{
T* newVals = allocate<T>(newSize);
T* newVals = TAlloc::template allocate<T>(newSize);
if (this->mVals != NULL)
{
if (this->mSize > 0)
@ -761,7 +761,7 @@ public:
{
intptr newSize = this->mAllocSize + this->mAllocSize / 2 + 1;
T* newVals = allocate<T>(newSize);
T* newVals = TAlloc::template allocate<T>(newSize);
if (this->mVals != NULL)
{
if (idx > 0) // Copy left of idx
@ -790,7 +790,7 @@ public:
{
intptr newSize = BF_MAX(this->mSize + size, this->mAllocSize + this->mAllocSize / 2 + 1);
T* newVals = allocate<T>(newSize);
T* newVals = TAlloc::template allocate<T>(newSize);
if (this->mVals != NULL)
{
if (idx > 0) // Copy left of idx