Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
n00b101
on May 15, 2016
|
parent
|
context
|
favorite
| on:
Mistakes to avoid with C++ 11 smart pointers
For a doubly linked list, I
think
the right approach is to store a unique_ptr pointing in one direction and a raw pointer pointing in the other direction. It is then understood by convention that raw pointers should never be deleted.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: