|
Boost : |
From: David B. Held (dheld_at_[hidden])
Date: 2002-04-18 14:20:23
"Gennadiy Rozental" <rogeeff_at_[hidden]> wrote in message
news:a9n4j9$poj$1_at_main.gmane.org...
> [...]
> 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
the
way that Ownership and Storage are orthogonalized. However, might this
be a reason to combine them into a single policy? Are there other
situations
where having a single policy would simplify matters?
Dave
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk