News for hackers. Stuff that matters.
Re:Mistakes to avoid with C++ 11 smart pointers by millstone on Sunday May 15, 2016 @12:51AM (#11699485)
Unfortunately a const shared_ptr is like a const raw pointer: you can't change the pointer itself, but can still modify what it points to.
Re:Mistakes to avoid with C++ 11 smart pointers by Too on Sunday May 15, 2016 @02:29AM (#11699769)
You can do const shared_ptr<const type>, it's like a const * const raw pointer.