GCC 5 & modularity

Jonathan Wakely jwakely.gcc@gmail.com
Sun Mar 18 20:49:00 GMT 2012


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.



More information about the Gcc mailing list