Hi @Christoph-Hart and all,
following your advice here (updating streaming_example) I setup a fresh JUCE 6 project and added the necessary modules.
Without adding any own code and not even at the point to call the factory it doesn't compile. The reason seems to be internal changes, that many containers use now ReferenceCountedObject<>::Ptr
(which is great I think).
But the accessor functions return raw pointers, like seen here:
There are two ways to fix it, either we return a Ptr or add .get()
to each return statement. A warning, they are many!
I would volunteer to go through the code and fix those making it compile, if you will integrate those changes upstream (I don't intend to maintain a fork).
Which way do you want me to fix it?
My advice would be adding
using Ptr = ReferenceCountedObjectPtr<ActionBase>;
and return an ActionBase::Ptr instead.
Thanks,
Daniel