News for hackers. Stuff that matters.
Re:Plywood: A New Cross-Platform Open Source C++ Framework by gpderetta on Wednesday May 27, 2020 @06:27AM (#23321384)
> 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).

There are no comments on this comment yet.