From 012be8528783cdbf4b7a9e64f78bd8f056b97e24 Mon Sep 17 00:00:00 2001 From: supperpiccle Date: Wed, 11 Jan 2023 10:00:24 -0600 Subject: [PATCH] Use passed in allocator. --- include/rapidjson/schema.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/rapidjson/schema.h b/include/rapidjson/schema.h index 6e51177..439133f 100644 --- a/include/rapidjson/schema.h +++ b/include/rapidjson/schema.h @@ -620,9 +620,9 @@ public: if (v->IsArray() && v->Size() > 0) { enum_ = static_cast(allocator_->Malloc(sizeof(uint64_t) * v->Size())); for (ConstValueIterator itr = v->Begin(); itr != v->End(); ++itr) { - typedef Hasher > EnumHasherType; + typedef Hasher > EnumHasherType; char buffer[256u + 24]; - MemoryPoolAllocator<> hasherAllocator(buffer, sizeof(buffer)); + MemoryPoolAllocator hasherAllocator(buffer, sizeof(buffer)); EnumHasherType h(&hasherAllocator, 256); itr->Accept(h); enum_[enumCount_++] = h.GetHashCode();