I'm building my own pet engine and after struggling with how to handle resource ownership for a while, I came across this questionthis question and specifically Josh and Sean's responses (as well as Sean's blog on shared_ptr), which really made a whole lot of sense to me. So I went ahead and implemented my own similar system, and so far it's working great except for one minor snag - what do I do when I need to access a resource of a derived type when the handle only refers to the base type?
replaced http://gamedev.stackexchange.com/ with https://gamedev.stackexchange.com/