Re: C++ and garbage collection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote:
> 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.

How does that one actually work and what do I have to do to use it ?


cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@xxxxxxxx
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux