Changed JsonVariantConst::is<JsonArray/JsonObject>() to return false (closes #1412)

This commit is contained in:
Benoit Blanchon
2021-02-23 08:58:52 +01:00
parent 744d61f6fd
commit 3aab36fec2
7 changed files with 182 additions and 159 deletions

View File

@@ -35,6 +35,11 @@ class JsonDocument : public Visitable {
_data.setNull();
}
template <typename T>
bool is() {
return getVariant().template is<T>();
}
template <typename T>
bool is() const {
return getVariant().template is<T>();