6 ms·
> They also add a level of indirection, neither shared_ptr nor unique_ptr add any additional indirection compared to raw pointers. Of course if you can you sh
by gpderetta 6y ago
> They also add a level of indirection,
neither shared_ptr nor unique_ptr add any additional indirection compared to raw pointers.
Of course if you can you should use inline value types, but that's a different thing. The parent was talking about replacing raw pointers with smart pointers (personally I have no particular issue with non-owning raw pointers).