|
Boost : |
From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2003-10-05 17:52:26
Philippe A. Bouchard wrote:
>>> - cannot be easily casted to other pointee types.
>>
>> I don't believe I know the ownership paradigm; have a reference
>> handy? And, of course, that last bit worries me greatly: what kind of
>> casting restrictions are we talking about?
Cast a shifted_ptr of type ownership to a garbage collected one because the
information on the pointee is not the same.
[...]
> Accessing the object is a single machine instruction so it is true it
> depends what you are doing and the required time to allocate is no
> more than a pure garbage collector. But at this level the resulting
> overalls could be negligeable...
... When the garbage collector is just in its "collecting" stage. I do not
wish to start benchmarking every collector, I just wanted to mix reference
counting with garbage collection for a better overall.
[...]
Would you like me to rename shifted_ptr to gc_ptr since "shifted" was used
as a warning but not needed anymore since make_gc_ptr is going to be used &
os_collector will be discarded?
Philippe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk