Skip to content

Support for GCC 9 ?! #1184

@soeth16

Description

@soeth16

Hi at all,
In order to compile the framework with GCC 9.2 I made following changes:

src/ArduinoJson/Object/MemberProxy.hpp

...
template <typename TObject, typename TStringRef>
class MemberProxy : public VariantOperators<MemberProxy<TObject, TStringRef> >,
                    public Visitable {
  typedef MemberProxy<TObject, TStringRef> this_type;

 public:
  MemberProxy(const MemberProxy&) = default; // GCC 9
...

src/ArduinoJson/Array/ElementProxy.hpp

...
template <typename TArray>
class ElementProxy : public VariantOperators<ElementProxy<TArray> >,
                     public Visitable {
  typedef ElementProxy<TArray> this_type;

 public:
  ElementProxy(const ElementProxy&) = default; // GCC 9
...

extras/tests/JsonDocument/BasicJsonDocument.cpp:

...
class SpyingAllocator {
 public:
  SpyingAllocator(const SpyingAllocator&) = default; // GCC 9
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions