Re:The case against a C alternative
by usefulcat on Wednesday August 10, 2022 @07:59PM
(#32419984)
I really don’t see what the big deal is? Generally the only time you should be returning or passing around a unique_ptr is when you’re actually transferring ownership of the referenced object. Otherwise just dereference it and pass around a reference to the underlying object.
[ Parent
| on HN ]
There are no comments on this comment yet.