diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index 40a0442..3f21062 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -202,7 +202,7 @@ public: */ template GenericValue& CopyFrom(const GenericValue& rhs, Allocator& allocator) { - RAPIDJSON_ASSERT((void*)this != (void*)&rhs); + RAPIDJSON_ASSERT((void*)this != (void const*)&rhs); this->~GenericValue(); new (this) GenericValue(rhs,allocator); return *this;