Boost logo

Boost :

Subject: Re: [boost] request for interest in a garbage collection library
From: Achilleas Margaritis (axilmar_at_[hidden])
Date: 2009-04-20 12:59:02

> Jumping in here, the problem is that having to mix GC code, which
> automatically releases memory in a non-deterministic way, and normal
> RAII destructor code, which releases all resources in a deterministic
> way, creates two different syntaxes in a C++ program. This would
> currently require the programmer to "know" which type of destruction
> belongs with which object.

I think the overhead of knowing which type of destruction belongs to
which object is minimal when compared to the overhead of manually
tracking memory. Resources like memory should be tracked by a GC,
resources like mutexes or files should be tracked by RAII.

What I like in C++ is that I can use the best of both worlds at the same

Boost list run by bdawes at, gregod at, cpdaniel at, john at