Test that adding the same value twice doesn't increase the size of the object

This commit is contained in:
Benoit Blanchon
2014-09-27 14:43:19 +02:00
parent 166bdd6919
commit a2fc188526
10 changed files with 146 additions and 32 deletions

View File

@ -1,6 +1,7 @@
#pragma once
#include <stddef.h>
#include "JsonNode.h"
class JsonObject;
struct JsonNode;
@ -13,10 +14,10 @@ public:
// virtual ~JsonBuffer() = 0;
JsonObject createObject();
protected:
virtual /*JsonNode&*/void allocateNode() = 0;
/*JsonNode&*/void createNode();
virtual JsonNode* allocateNode() = 0;
private:
JsonNode* createNode(JsonNodeType type);
};