From 4ada6a354e9480af1cfbf8a751e27dac11aa7f9c Mon Sep 17 00:00:00 2001 From: Jan Date: Sun, 23 Jun 2024 01:38:58 +0200 Subject: Fix const-qualified assignment in RapidJSON (#717) pulls in https://github.com/Tencent/rapidjson/pull/719 resolves https://github.com/Tencent/rapidjson/issues/2277 --- primedev/thirdparty/rapidjson/document.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'primedev/thirdparty/rapidjson/document.h') diff --git a/primedev/thirdparty/rapidjson/document.h b/primedev/thirdparty/rapidjson/document.h index 22fb2f56..a5465a3c 100644 --- a/primedev/thirdparty/rapidjson/document.h +++ b/primedev/thirdparty/rapidjson/document.h @@ -318,8 +318,6 @@ struct GenericStringRef { GenericStringRef(const GenericStringRef& rhs) : s(rhs.s), length(rhs.length) {} - GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; } - //! implicit conversion to plain CharType pointer operator const Ch *() const { return s; } @@ -330,6 +328,8 @@ private: //! Disallow construction from non-const array template GenericStringRef(CharType (&str)[N]) /* = delete */; + //! Copy assignment operator not permitted - immutable type + GenericStringRef& operator=(const GenericStringRef& rhs) /* = delete */; }; //! Mark a character pointer as constant string -- cgit v1.2.3