forked from bblanchon/ArduinoJson
Huge refactoring in progress...
This commit is contained in:
@ -18,6 +18,9 @@ class JsonObjectNode {
|
||||
|
||||
JsonPair pair;
|
||||
JsonObjectNode* next;
|
||||
|
||||
// warning C4512: assignment operator could not be generated
|
||||
#pragma warning( suppress : 4512 )
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ class JsonArray : public JsonPrintable {
|
||||
static JsonArray _invalid;
|
||||
};
|
||||
|
||||
bool operator==(const JsonArray &left, const JsonArray &right) {
|
||||
inline bool operator==(const JsonArray &left, const JsonArray &right) {
|
||||
// two JsonArray are equal if they are the same instance
|
||||
// (we don't compare the content)
|
||||
return &left == &right;
|
||||
|
@ -72,7 +72,7 @@ class JsonObject : public JsonPrintable {
|
||||
static JsonObject _invalid;
|
||||
};
|
||||
|
||||
bool operator==(const JsonObject &left, const JsonObject &right) {
|
||||
inline bool operator==(const JsonObject &left, const JsonObject &right) {
|
||||
// two JsonObject are equal if they are the same instance
|
||||
// (we don't compare the content)
|
||||
return &left == &right;
|
||||
|
@ -16,5 +16,8 @@ struct JsonPair {
|
||||
|
||||
const char* const key;
|
||||
JsonValue value;
|
||||
|
||||
// warning C4512: assignment operator could not be generated
|
||||
#pragma warning( suppress : 4512 )
|
||||
};
|
||||
}
|
||||
}
|
@ -45,6 +45,7 @@ class JsonValue {
|
||||
operator const char *() const;
|
||||
operator double() const;
|
||||
operator long() const;
|
||||
operator int() const { return operator long(); }
|
||||
operator JsonArray &() const;
|
||||
operator JsonObject &() const;
|
||||
|
||||
|
Reference in New Issue
Block a user