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

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

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);
}