Merge pull request #881 from TedLyngmo/issue_874_Werror_effcplusplus
Fix -Werror=effc++ errors with GNU 6.3.1
This commit is contained in:
commit
2df32fbfa0
@ -16,6 +16,8 @@ struct MyHandler {
|
||||
const char* type;
|
||||
std::string data;
|
||||
|
||||
MyHandler() : type(), data() {}
|
||||
|
||||
bool Null() { type = "Null"; data.clear(); return true; }
|
||||
bool Bool(bool b) { type = "Bool:"; data = b? "true": "false"; return true; }
|
||||
bool Int(int i) { type = "Int:"; data = stringify(i); return true; }
|
||||
@ -30,6 +32,9 @@ struct MyHandler {
|
||||
bool EndObject(SizeType memberCount) { type = "EndObject:"; data = stringify(memberCount); return true; }
|
||||
bool StartArray() { type = "StartArray"; data.clear(); return true; }
|
||||
bool EndArray(SizeType elementCount) { type = "EndArray:"; data = stringify(elementCount); return true; }
|
||||
private:
|
||||
MyHandler(const MyHandler& noCopyConstruction);
|
||||
MyHandler& operator=(const MyHandler& noAssignment);
|
||||
};
|
||||
|
||||
int main() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user