Re:Mistakes to avoid with C++ 11 smart pointers
by n00b101 on Saturday May 14, 2016 @11:15PM
(#11699227)
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.
[ Parent
| on HN ]
There are no comments on this comment yet.