mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-08-01 11:44:45 +02:00
Fixed creation of JsonVariant::_invalid
This commit is contained in:
@@ -166,6 +166,9 @@ class JsonVariant : public Internals::JsonPrintable<JsonVariant> {
|
|||||||
JsonVariant &operator[](const char *key);
|
JsonVariant &operator[](const char *key);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
// Special constructor used only to create _invalid.
|
||||||
|
JsonVariant(Internals::JsonVariantType type) : _type(type) {}
|
||||||
|
|
||||||
// Helper for interger cast operators
|
// Helper for interger cast operators
|
||||||
template <typename T>
|
template <typename T>
|
||||||
T cast_long_to() const {
|
T cast_long_to() const {
|
||||||
|
Reference in New Issue
Block a user