I just changed a nasty class I had to a base class and subs. But now I can’t find the syntax to cast the class back to a sub-class and call a method.
I have this: ‘MeshFrameBase::Ptr deliveredFrame’ and need to call the getPixelBuffer() method of a specific sub-class (that base class doesn’t have, it’s platform specific).
I can’t do:
Or any variations, or any kind of constructor I can think of. Am I a bit outside the box here, or is there some C++ Kung Fu I can use?