From 0277ebdc3ca39b40e76fb1b9e6ad3b554a192a73 Mon Sep 17 00:00:00 2001 From: "Philipp A. Hartmann" Date: Fri, 27 Jun 2014 10:27:35 +0200 Subject: [PATCH] document.h: avoid casting away const Another instance of casting away constness via C-style cast has been missed (introduced by #20). --- include/rapidjson/document.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;