From 35ccca8b7430f8b354142131a632f542cf162206 Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Tue, 5 Apr 2016 23:56:50 +0800 Subject: [PATCH] Try to fix VC warning C4512 --- include/rapidjson/document.h | 2 ++ include/rapidjson/encodedstream.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index e23e1ad..dda799c 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -322,6 +322,8 @@ private: //! Disallow construction from non-const array template GenericStringRef(CharType (&str)[N]) /* = delete */; + + GenericStringRef& operator=(const GenericStringRef&); }; //! Mark a character pointer as constant string diff --git a/include/rapidjson/encodedstream.h b/include/rapidjson/encodedstream.h index c402e5c..c12caac 100644 --- a/include/rapidjson/encodedstream.h +++ b/include/rapidjson/encodedstream.h @@ -84,6 +84,10 @@ public: Ch* PutBegin() { return 0; } size_t PutEnd(Ch*) { return 0; } +private: + EncodedInputStream(const EncodedInputStream&); + EncodedInputStream& operator=(const EncodedInputStream&); + MemoryStream& is_; };