diff --git a/include/rapidjson/internal/regex.h b/include/rapidjson/internal/regex.h index 8ef5766..3560cae 100644 --- a/include/rapidjson/internal/regex.h +++ b/include/rapidjson/internal/regex.h @@ -317,8 +317,8 @@ private: RAPIDJSON_ASSERT(stateSet_ == 0); if (stateCount_ > 0) { stateSet_ = static_cast(states_.GetAllocator().Malloc(GetStateSetSize())); - state0_.Reserve(stateCount_); - state1_.Reserve(stateCount_); + state0_.template Reserve(stateCount_); + state1_.template Reserve(stateCount_); } }