Commit ed12665f authored by Milo Yip's avatar Milo Yip

Fix compilation error for gcc/clang

parent a33af83e
...@@ -317,8 +317,8 @@ private: ...@@ -317,8 +317,8 @@ private:
RAPIDJSON_ASSERT(stateSet_ == 0); RAPIDJSON_ASSERT(stateSet_ == 0);
if (stateCount_ > 0) { if (stateCount_ > 0) {
stateSet_ = static_cast<unsigned*>(states_.GetAllocator().Malloc(GetStateSetSize())); stateSet_ = static_cast<unsigned*>(states_.GetAllocator().Malloc(GetStateSetSize()));
state0_.Reserve<SizeType>(stateCount_); state0_.template Reserve<SizeType>(stateCount_);
state1_.Reserve<SizeType>(stateCount_); state1_.template Reserve<SizeType>(stateCount_);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment