2 ms·
> Use after free should only be an issue if you're using raw pointers. Which you are, because "this" is a raw pointer. The same applies to references and itera
by pcwalton 9y ago
> Use after free should only be an issue if you're using raw pointers.
Which you are, because "this" is a raw pointer. The same applies to references and iterators, which are used everywhere. It's not feasible to use C++ without using those features.
Besides, you can get UAF without any references at all. Read/write races on a vector, for example.