Boost logo

Boost :

Subject: Re: [boost] request for interest in a garbage collection library
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-04-14 12:19:34


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
class

Is that right?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk