Add a stub for shallowCopy()

This commit is contained in:
Benoit Blanchon committed 2023-08-10 09:54:44 +02:00
1 parent 2f31c932d7
commit 53d54ba9d7
3 files changed
+21

No files matched your search

@@ -227,6 +227,12 @@ class VariantRefBase : public VariantTag {
return 0;
}
// DEPRECATED: performs a deep copy
ARDUINOJSON_DEPRECATED("performs a deep copy")
void shallowCopy(JsonVariantConst src) const {
set(src);
}
private:
TDerived& derived() {
return static_cast<TDerived&>(*this);