diff --git a/include/rapidjson/istreamwrapper.h b/include/rapidjson/istreamwrapper.h index 412509b..9efeea2 100644 --- a/include/rapidjson/istreamwrapper.h +++ b/include/rapidjson/istreamwrapper.h @@ -87,6 +87,9 @@ public: } private: + BasicIStreamWrapper(const BasicIStreamWrapper&); + BasicIStreamWrapper& operator=(const BasicIStreamWrapper&); + StreamType& stream_; size_t count_; //!< Number of characters read. Note: mutable Ch peekBuffer_[4]; diff --git a/include/rapidjson/ostreamwrapper.h b/include/rapidjson/ostreamwrapper.h index 127deb3..8bf36dc 100644 --- a/include/rapidjson/ostreamwrapper.h +++ b/include/rapidjson/ostreamwrapper.h @@ -60,6 +60,9 @@ public: size_t PutEnd(char*) { RAPIDJSON_ASSERT(false); return 0; } private: + BasicOStreamWrapper(const BasicOStreamWrapper&); + BasicOStreamWrapper& operator=(const BasicOStreamWrapper&); + StreamType& stream_; };