From ed12665f16dd141d3faa49e16cd67fc15806940e Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Sat, 30 Jan 2016 22:44:04 +0800 Subject: [PATCH] Fix compilation error for gcc/clang --- include/rapidjson/internal/regex.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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_); } }