Use C++11 deleted functions for noncopyable.

Change-Id: I686f8871932c8bd611c74ef1e84a31530ea96d66
This commit is contained in:
Peter Johnson
2015-06-22 23:20:18 -07:00
parent c06e625413
commit 42ad98567c
6 changed files with 22 additions and 23 deletions

View File

@@ -86,14 +86,14 @@ public:
bool ReadValue(NT_Type type, NT_Value* value);
bool ReadString(NT_String* str);
WireDecoder(const WireDecoder&) = delete;
WireDecoder& operator= (const WireDecoder&) = delete;
protected:
unsigned int m_proto_rev;
const char* m_error;
private:
WireDecoder(const WireDecoder&);
WireDecoder& operator= (const WireDecoder&);
void Realloc(std::size_t len);
raw_istream& m_is;