Boost logo

Boost :

Subject: Re: [boost] [Smart Pointers]
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2012-12-09 11:15:21

On December 9, 2012 5:41:01 PM Rahul Sr <srivasrrahul_at_[hidden]> 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.

Boost list run by bdawes at, gregod at, cpdaniel at, john at