From 23d4d35a73d4a41ef5c73b955035a30c9776781d Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sun, 29 Dec 2024 15:18:50 -0800 Subject: [PATCH] Template fix --- BeefySysLib/util/MultiHashSet.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BeefySysLib/util/MultiHashSet.h b/BeefySysLib/util/MultiHashSet.h index 8e6cc16d..a2b0e363 100644 --- a/BeefySysLib/util/MultiHashSet.h +++ b/BeefySysLib/util/MultiHashSet.h @@ -180,7 +180,7 @@ protected: void ResizeEntries(int newSize) { BF_ASSERT(newSize >= mAllocSize); - Entry* newEntries = TFuncs::allocate(newSize); + Entry* newEntries = TFuncs::template allocate(newSize); for (int i = 0; i < mCount; i++) { @@ -276,7 +276,7 @@ public: { if (this->mHashHeads == NULL) { - this->mHashHeads = TFuncs::allocate(mHashSize); + this->mHashHeads = TFuncs::template allocate(mHashSize); memset(this->mHashHeads, -1, sizeof(int) * mHashSize); } @@ -298,7 +298,7 @@ public: { if (this->mHashHeads == NULL) { - this->mHashHeads = TFuncs::allocate(mHashSize); + this->mHashHeads = TFuncs::template allocate(mHashSize); memset(this->mHashHeads, -1, sizeof(int) * mHashSize); } @@ -332,7 +332,7 @@ public: void Rehash(int newHashSize) { - auto newHashHeads = TFuncs::allocate(newHashSize); + auto newHashHeads = TFuncs::template allocate(newHashSize); memset(newHashHeads, -1, sizeof(int) * newHashSize); if (mHashHeads != NULL)