Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
darkmx0z
· 6y ago · 0 comments
did you check the header of that cpp? they are storing it in a shared_ptr: shared_ptr = referenced counted pointer = RAII
they should have used make_shared, but it is still safe
Comments
[–]
pjmlp
6y ago
Which isn't exception safe, as any good C++ developer would know.