Fixed "deprecated-copy" warning on GCC 9 (fixes #1184)

This commit is contained in:
Benoit Blanchon committed 2020-02-13 11:07:40 +01:00
1 parent 66b12da4e7
commit d2a67f362f
5 files changed
+13

No files matched your search

@@ -11,6 +11,7 @@ using ARDUINOJSON_NAMESPACE::addPadding;
class SpyingAllocator {
public:
SpyingAllocator(const SpyingAllocator& src) : _log(src._log) {}
SpyingAllocator(std::ostream& log) : _log(log) {}
void* allocate(size_t n) {