aboutsummaryrefslogtreecommitdiff
path: root/primedev/thirdparty/rapidjson
diff options
context:
space:
mode:
authorJan <sentrycraft123@gmail.com>2024-06-23 01:38:58 +0200
committerGitHub <noreply@github.com>2024-06-23 01:38:58 +0200
commit4ada6a354e9480af1cfbf8a751e27dac11aa7f9c (patch)
tree575da9324da3ce5161e83b8bf8aef13b0f8bf86d /primedev/thirdparty/rapidjson
parentc07ebd8728f89b0db621da6a2c512b33345df444 (diff)
downloadNorthstarLauncher-4ada6a354e9480af1cfbf8a751e27dac11aa7f9c.tar.gz
NorthstarLauncher-4ada6a354e9480af1cfbf8a751e27dac11aa7f9c.zip
Fix const-qualified assignment in RapidJSON (#717)v1.25.3-rc3v1.25.3
pulls in https://github.com/Tencent/rapidjson/pull/719 resolves https://github.com/Tencent/rapidjson/issues/2277
Diffstat (limited to 'primedev/thirdparty/rapidjson')
-rw-r--r--primedev/thirdparty/rapidjson/document.h4
1 files changed, 2 insertions, 2 deletions
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<SizeType N>
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