3 ms·
No use-after-deletion is precisely what is required. And yes, we use weak_ptr too, for some things. The alternative is "no language-level references, any time
by PaulDavisThe1st 4y ago
No use-after-deletion is precisely what is required. And yes, we use weak_ptr too, for some things.
The alternative is "no language-level references, any time you want object "Foo", go look it up in some table". We opted not to do that.