From: David B. Held (dheld_at_[hidden])
Date: 2002-04-18 14:20:23
"Gennadiy Rozental" <rogeeff_at_[hidden]> wrote in message
> Since SmartPrt is publicly inherited from StoragePolicy you can introduce
> there whatever interface you need. Depends on your OwnershipPolicy you
> may or may not need to inherit from SmartPtr. For example, if you have an
> intrusive reference counting you may need to access OwnershipPolicy at the
> point when pointer become real.
Ok, I think I follow that. Looking at the SmartPtr code, it looks elegant
way that Ownership and Storage are orthogonalized. However, might this
be a reason to combine them into a single policy? Are there other
where having a single policy would simplify matters?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk