This is exactly the discussion I’m having over here: [solved] Why is my ReferenceCountedObject asserting?.
I had started out with an OwnedArray
, and decided to try out ReferenceCountedArray
because it seemed like it might be safer. But now I’m wondering if shared pointers are actually overkill in this instance, as you suggest.