Subject: Re: [boost] request for interest in a garbage collection library
From: Achilleas Margaritis (axilmar_at_[hidden])
Date: 2009-04-14 15:47:53
Mathias Gaunard wrote:
> Achilleas Margaritis wrote:
>> There are three ways to add garbage collection to an object:
>> 1) inherit from gc_object<T>.
>> 2) wrap your class in gc_wrapper<T>.
>> 3) allocate your object with new(T_deleter)..
>> But you should modify your pointers to be gc_ptr<T> instances for this
>> to work.
> So, comparing your framework to C++/CLI:
> - new(T_deleter) is like gcnew
> - gc_ptr<T> is like T^
> - inheriting from gc_object<T> is like declaring a class as being a ref
> Is that right?
Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk