Issue1189.cpp 261 B

1234567891011121314
  1. // ArduinoJson - 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. }