You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
844 B
26 lines
844 B
From f9d9e50caca4673f194115b059fe5daef77163fd Mon Sep 17 00:00:00 2001
|
|
From: Janusz Chorko <janusz.chorko@apdu.pl>
|
|
Date: Fri, 26 Aug 2016 21:26:50 +0200
|
|
Subject: [PATCH 2/7] Explicitly disable copy assignment operator
|
|
|
|
---
|
|
include/rapidjson/document.h | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h
|
|
index b0f1f70b..19f5a6a5 100644
|
|
--- a/include/rapidjson/document.h
|
|
+++ b/include/rapidjson/document.h
|
|
@@ -326,6 +326,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
|
|
--
|
|
2.43.0
|
|
|