document.h: avoid casting away const
Another instance of casting away constness via C-style cast has been missed (introduced by #20).
This commit is contained in:
parent
be01d3d7cc
commit
0277ebdc3c
@ -202,7 +202,7 @@ public:
|
||||
*/
|
||||
template <typename SourceAllocator>
|
||||
GenericValue& CopyFrom(const GenericValue<Encoding,SourceAllocator>& 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user