|
Boost : |
Subject: Re: [boost] request for interest in a garbage collection library
From: Achilleas Margaritis (axilmar_at_[hidden])
Date: 2009-04-21 16:55:43
Mathias Gaunard wrote:
> Achilleas Margaritis wrote:
>
>>> I even wonder how gc_ptr<T>::gc_ptr::(T*) can be a safe constructor
>>> at all.
>>
>> What do you mean exactly?
>
> What if I do something like
>
> Foo foo;
> gc_ptr<Foo> bar = &foo;
>
> ?
It's ok, nothing will happen. The collector, as it is stated in the
readme, recognizes garbage-collected blocks. If a gc ptr points to a
non-gc object, then the ptr is simply ignored.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk