2021-03-29 17:14:01 +02:00
|
|
|
// ArduinoJson - https://arduinojson.org
|
2021-01-25 09:14:15 +01:00
|
|
|
// Copyright Benoit Blanchon 2014-2021
|
2020-03-05 13:46:45 +01:00
|
|
|
// 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);
|
|
|
|
|
}
|