3 ms·
There is no problem using raw pointers for non owning pointers. Also a lot of safe abstractions can be built on top of raw pointers (and smart pointers are obvi
by gpderetta 6y ago
There is no problem using raw pointers for non owning pointers. Also a lot of safe abstractions can be built on top of raw pointers (and smart pointers are obviously an example).
Pragmatism beats dogmatism in practice.
- whimsicalism 6y ago> no problem using raw pointers for non owning pointers No problem, but also little to no benefit. Why get in the habit of using them when you don't have to?