
9 Dec
2012
9 Dec
'12
4:15 p.m.
On December 9, 2012 5:41:01 PM Rahul Sr <srivasrrahul@gmail.com> wrote:
Thanks for input it does serve me well for some of the cases (where a single copy is required). However I face similar problem for shared_ptr as well. When ref count is 0 it will only call delete. Is there a way I can add mine?
You can specify a custom deleter as the second parameter of the initializing constructor.