std.allocator: false pointers

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Fri May 2 10:48:43 PDT 2014


On 5/2/14, 10:12 AM, "Marc Schütz" <schuetzm at gmx.net>" wrote:
>
> If destructors are still going to be called (see other thread), this
> trick is dangerous, because the resurrected objects might later on be
> destroyed again (double free).

Yah, forgot to mention this trick is only applicable to what I call "the 
passive heap". Thanks! -- Andrei


More information about the Digitalmars-d mailing list