From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2002-04-18 13:51:30
"David B. Held" <dheld_at_[hidden]> wrote in message
> If there is a better way to save and load pointers, I'd be glad to
> hear it. If this kind of feature just doesn't belong in a smart pointer,
> I'd like to know why (I'm easy to convince, I just need to see a
> good explanation). If this is possible to implement as a policy with
> Loki::SmartPtr, I'd like to see a basic sketch. From what I can tell,
> it isn't, since it would require a bit more interface than SmartPtr has
> (one would need a way to store and fetch two different types).
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk