File rapidjson.patch of Package bitfighter

commit 3b2441b87f99ab65f37b141a7b548ebadb607b96
Author: Janusz Chorko <janusz.chorko@apdu.pl>
Date:   Fri Aug 26 21:17:38 2016 +0200

    Removed non-compiling assignment operator. Fixed #718

diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h
index e3e20dfb..b0f1f70b 100644
--- a/include/rapidjson/document.h
+++ b/discord-rpc/thirdparty/rapidjson-1.1.0/include/rapidjson/document.h
@@ -316,8 +316,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; }
 
commit 862c39be371278a45a88d4d1d75164be57bb7e2d
Author: Janusz Chorko <janusz.chorko@apdu.pl>
Date:   Fri Aug 26 21:26:50 2016 +0200

    Explicitly disable copy assignment operator

diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h
index b0f1f70b..19f5a6a5 100644
--- a/include/rapidjson/document.h
+++ b/discord-rpc/thirdparty/rapidjson-1.1.0/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
openSUSE Build Service is sponsored by