3 ms·
Why should reference counting be a last resort?
Why should reference counting be a last resort?
Because it's insanely slow, and doesn't support cyclic structures.
... in C++. Because, at least in C++, it is a bad, slow and inconvenient GC. If you want or need generalized GC there are significantly better languages for that.