Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
leni536
on May 15, 2016
|
parent
|
context
|
favorite
| on:
Mistakes to avoid with C++ 11 smart pointers
#11: Do not create two shared_ptr from the same raw ptr! It creates two control blocks and reference counts.
microtonal
on May 15, 2016
[–]
That's #5.
leni536
on May 15, 2016
|
parent
[–]
Oh, I missed that one.
boulos
on May 15, 2016
|
root
|
parent
[–]
Should have used a unique_ptr.
ducks
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: