C++ and garbage collection
Jonathan Wakely
jwakely.gcc@gmail.com
Sat Feb 5 14:43:00 GMT 2011
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.
More information about the Gcc-help
mailing list