Hello,
I would like to get the _pCounter of a SharedPtr.
Can you add something like:
unsigned int const SharedPtr::getCount() const
I need this because I have a list of SharedPtr Resource*.
And I want to release only the oldest unused one first.
So if getCount() == 1 this means that only the list is still referencing the ptr
and I can remove it from the list to perform some resource shutdown stuff.
I could have an inUse bool but it would be easier to check if no one is using the resource.
If this feature doesn't exist it would be great to add it to 1.3.3 :)
Thanks,
Steven





