Using shared_ptr for unique ownership (kind of) - is this good practice?
问题 this is quite hard to explain but I'll try my best. So, I have a RenderComponent, EventManager and RenderSystem. In my RenderComponents constructor, I raise a renderComponentCreated event which the RenderSystem subscribes to. Using an event args object, I pass a RenderNode as data which contains the information the renderSystem needs to draw the thing (drawable, position and type). So far so good. Now, when the renderComponent is deleted, I want the RenderNode to be removed from the