Issue1189.cpp 269 B

12345678910111213
  1. // ArduinoJson - https://arduinojson.org
  2. // Copyright Benoit Blanchon 2014-2021
  3. // MIT License
  4. #include <ArduinoJson.h>
  5. // a function should not be able to get a JsonDocument by value
  6. void f(JsonDocument) {}
  7. int main() {
  8. DynamicJsonDocument doc(1024);
  9. f(doc);
  10. }