|
Boost : |
From: Michel André (michel.andre_at_[hidden])
Date: 2000-03-09 10:14:44
> It also has an implementetation of the so much discussed
> release operation (which fits my purposes but may not fit in a broader
> implementation, because its very Q&D).
Well I was a bit trigger happy when posting. My code leaks because
the counter isn't deleted after a release. So here is the improved
dispose operation:
void dispose() { if (--*pn <= 0) { if(ptr()!= NULL) del(); delete pn; }
}
Sorry! I am a bit trigger happy ;)
/Michel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk