3 ms·
By default, unique_ptr calls delete. It therefore still calls the destructor. So this has literally no bearing on the problem. It doesn't help at all.
by torstenvl 4y ago
By default, unique_ptr calls delete.
It therefore still calls the destructor.
So this has literally no bearing on the problem. It doesn't help at all.
- spacechild1 4y agoOf course it calls the destructor. What else should it do? The point is that you don't get any double frees, because you never have to call delete manually. Or maybe I misunderstood your complaint?