No viable conversion from 'Node::Ptr' (aka 'ReferenceCountedObjectPtr<juce::AudioProcessorGraph::Node>') to 'juce::AudioProcessorGraph::Node *'

#1

I was developing an audio plugin based on AudioProcessorGraph tutorial. However, following the tutorial I have this error

No viable conversion from 'Node::Ptr' (aka 'ReferenceCountedObjectPtr<juce::AudioProcessorGraph::Node>') to 'juce::AudioProcessorGraph::Node *'

I attach the code.

example.h (8.8 KB)
example.cpp (10.1 KB)

0 Likes

#2

From ReferenceCountedObjectPtr class:

/** Returns the object that this pointer references.
        The pointer returned may be null, of course.
    */
    ReferencedType* get() const noexcept

Rail

0 Likes