We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1fac15 commit c64f378Copy full SHA for c64f378
example/simplepullreader/simplepullreader.cpp
@@ -16,6 +16,14 @@ struct MyHandler {
16
const char* type;
17
std::string data;
18
19
+ MyHandler() : type(), data() { Null(); }
20
+ MyHandler(const MyHandler& cpy) : type(cpy.type),data(cpy.data) {}
21
+ MyHandler& operator=(const MyHandler& cpy) {
22
+ type = cpy.type;
23
+ data = cpy.data;
24
+ return *this;
25
+ }
26
+
27
bool Null() { type = "Null"; data.clear(); return true; }
28
bool Bool(bool b) { type = "Bool:"; data = b? "true": "false"; return true; }
29
bool Int(int i) { type = "Int:"; data = stringify(i); return true; }
0 commit comments