Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
rjinman
· 1y ago · 0 comments
unique_ptr is much better because then each object has a sole owner, which makes object lifetimes much easier to reason about and you can't end up with cyclic references causing memory leaks.
Comments
No comments yet.
Better HN