File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ struct MyHandler {
16
16
const char * type;
17
17
std::string data;
18
18
19
+ MyHandler () : type(), data() {}
20
+
19
21
bool Null () { type = " Null" ; data.clear (); return true ; }
20
22
bool Bool (bool b) { type = " Bool:" ; data = b? " true" : " false" ; return true ; }
21
23
bool Int (int i) { type = " Int:" ; data = stringify (i); return true ; }
@@ -30,6 +32,9 @@ struct MyHandler {
30
32
bool EndObject (SizeType memberCount) { type = " EndObject:" ; data = stringify (memberCount); return true ; }
31
33
bool StartArray () { type = " StartArray" ; data.clear (); return true ; }
32
34
bool EndArray (SizeType elementCount) { type = " EndArray:" ; data = stringify (elementCount); return true ; }
35
+ private:
36
+ MyHandler (const MyHandler& noCopyConstruction);
37
+ MyHandler& operator =(const MyHandler& noAssignment);
33
38
};
34
39
35
40
int main () {
You can’t perform that action at this time.
0 commit comments