Skip to content

Commit fc7cda7

Browse files
committed
Fix -Werror=effc++
Tencent#1164
1 parent 03f5de9 commit fc7cda7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

example/archiver/archiver.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ class JsonReader {
8989
static const bool IsWriter = !IsReader;
9090

9191
private:
92+
JsonReader(const JsonReader&);
93+
JsonReader& operator=(const JsonReader&);
94+
9295
void Next();
9396

9497
// PIMPL
@@ -131,6 +134,9 @@ class JsonWriter {
131134
static const bool IsWriter = !IsReader;
132135

133136
private:
137+
JsonWriter(const JsonWriter&);
138+
JsonWriter& operator=(const JsonWriter&);
139+
134140
// PIMPL idiom
135141
void* mWriter; ///< JSON writer.
136142
void* mStream; ///< Stream buffer.

0 commit comments

Comments
 (0)