diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index b42f027..1f490d6 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -706,7 +706,7 @@ public: GenericDocument& ParseStream(InputStream& is) { ValueType::SetNull(); // Remove existing root if exist GenericReader reader; - if (reader.Parse(is, *this)) { + if (reader.template Parse(is, *this)) { RAPIDJSON_ASSERT(stack_.GetSize() == sizeof(ValueType)); // Got one and only one root object this->RawAssign(*stack_.template Pop(1)); // Add this-> to prevent issue 13. parseError_ = 0;