diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index a059429..afe5354 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -705,7 +705,7 @@ public: template GenericDocument& ParseStream(InputStream& is) { ValueType::SetNull(); // Remove existing root if exist - GenericReader reader; + GenericReader reader; 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.