[solved] Why is my ReferenceCountedObject asserting?

Thanks for the feedback. In your opinion, does my case call for shared pointers, or would unique or even simple pointers do? Just to flesh it out a little more,

  • Every node points to its parent (one) and its children (multiple)
  • Nodes can be moved from one point in the tree to another
  • If a node is deleted, all of its children are also deleted.

Originally I was using OwnedArray for the children and a raw pointer for the parent. I thought I’d try shared pointers because they seemed safer, but now I’m wondering whether it might actually be over complicating things.