Precise GC state

Jonathan M Davis newsgroup.d at jmdavisprog.com
Mon Nov 27 18:00:59 UTC 2017


On Monday, November 27, 2017 15:56:09 Ola Fosheim Grostad via Digitalmars-d 
wrote:
> On Monday, 27 November 2017 at 14:35:03 UTC, Dmitry Olshansky
>
> wrote:
> > Then watch Herb’s Sutter recent talk “Leak freedom by default”.
> > Now THAT guy must be out of his mind :)
>
> He could be, I havent seen it... Shared_ptr isnt frequently used,
> it is a last resort,

I don't understand this. I would expect most modern C++ programs to be using
shared_ptr as the default for most pointers and thus use it heavily. Any
time that I've been able to use at least TR1 for C++, I've used it
everywhere, and when I've been stuck with C++98, I've used a home-grown
equivalent. shared_ptr is a _huge_ boon for avoiding memory problems.

- Jonathan M Davis




More information about the Digitalmars-d mailing list