
6 Jul
2009
6 Jul
'09
4:13 p.m.
Zachary Turner wrote:
Ok, so let me rephrase then: Is there a case to be made for a more flexible shared_ptr (either through modification or through a new class addition) that allows one to provide custom reference counting semantics much the same way that shared_ptr allows one to provide custom deletion semantics?
This is not unreasonable. It can't be done currently because the sp_counted_base members that implement the reference counting are non-virtual and inline.