Removed the copy-constructor of JsonDocument (issue #1189)

This commit is contained in:
Benoit Blanchon committed 2020-03-05 13:46:45 +01:00
1 parent 735bea1f47
commit 9cb0ddb5e7
4 files changed
+62 -15

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
// ArduinoJson - arduinojson.org
// Copyright Benoit Blanchon 2014-2020
// MIT License
#include <ArduinoJson.h>
// a function should not be able to get a JsonDocument by value
void f(JsonDocument) {}
int main() {
DynamicJsonDocument doc(1024);
f(doc);
}