summaryrefslogtreecommitdiff
path: root/rapidjson
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2025-07-02 15:00:40 -0400
committerJosh Ferrell <josh@vector35.com>2025-07-03 14:09:16 -0400
commitf4d1bae870ac04bb1b1392c6b7d173aa7e079d5e (patch)
treed6c13053f1e97f4b79c5b883dd78a0e41893674d /rapidjson
parentaa9f13d44a271d969d0ec69f5ce0ec159560e8c1 (diff)
Fix C++ deprecation warnings in nlohmann and rapidjson
Diffstat (limited to 'rapidjson')
-rw-r--r--rapidjson/document.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/rapidjson/document.h b/rapidjson/document.h
index 340b6c40..c9bbea71 100644
--- a/rapidjson/document.h
+++ b/rapidjson/document.h
@@ -1986,7 +1986,7 @@ private:
if (count) {
GenericValue* e = static_cast<GenericValue*>(allocator.Malloc(count * sizeof(GenericValue)));
SetElementsPointer(e);
- std::memcpy(e, values, count * sizeof(GenericValue));
+ std::memcpy(static_cast<void*>(e), values, count * sizeof(GenericValue));
}
else
SetElementsPointer(0);
@@ -1999,7 +1999,7 @@ private:
if (count) {
Member* m = static_cast<Member*>(allocator.Malloc(count * sizeof(Member)));
SetMembersPointer(m);
- std::memcpy(m, members, count * sizeof(Member));
+ std::memcpy(static_cast<void*>(m), members, count * sizeof(Member));
}
else
SetMembersPointer(0);