This is the mail archive of the
mailing list for the GCC project.
Re: GCC 5 & modularity
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.