Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-01-30 16:09:37


From: "David B. Held" <dheld_at_[hidden]>
> ~ref_counted()
> {
> delete pCount_;
> }
>
> bool release(P const&)
> {
> if (!--*pCount_) return true;
> pCount_ = 0;
> return false;
> }

Doesn't release() leak pCount_? Who is responsible for destroying the count?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk