I have a resource manager that loads and returns resources. Currently, I just return shared_ptrsshared_ptrs for the resources I create, but I'm thinking about going over to using something like simple handles, whereby you get an ID you use to access the resource. The reasons are more explicit ownership, and also less overhead, rather than using smart_ptrssmart_ptrs.
Are resource handles the most efficient way to access resources, should I stick with shared_ptrs or are there other alternatives?
The reason I am asking is that I was reading this article which, which made me wonder if I should implement something like that, instead.
Thanks