This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: C++ and garbage collection
On 05/02/2011, Enrico Weigelt wrote:
>
>> One viable approach is to modify the uses of pointers into shared_ptr
>> (from TR1 or boost) and then add the Boehm collector. This process
>> takes work, because changing all pointers won't work and changing
>> none won't buy you anything.
>
> Guess this would take a lot of work and add more dependencies
> (than just the relatively small boehm-gc lib) ...
GCC includes a tr1::shared_ptr so there's no extra dependency if you
are only planning to use g++, and std::shared_ptr is part of C++0x.