This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC 5 & modularity


On Sun, 18 Mar 2012 20:49:24 +0000
Jonathan Wakely <jwakely.gcc@gmail.com> wrote:

> On 18 March 2012 16:56, Basile Starynkevitch wrote:
> >
> > ? * a garbage collector. Even a modular GCC need some memory management policy (and
> > ref-counting à la GTK, or à la std::shared_ptr is not enough IMHO inside a compiler
> > because a compiler has much more complex and circular data structures, and much less
> > hierarchically organized, that a graphical tookit has).
> 
> As has been pointed out to you before, shared_ptr is designed to be
> useful even with circular structures. Please read about weak_ptr.


Then why has it not being used before?


-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]