Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
millstone
on May 15, 2016
|
parent
|
context
|
favorite
| on:
Mistakes to avoid with C++ 11 smart pointers
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.
Too
on May 15, 2016
[–]
You can do const shared_ptr<const type>, it's like a const * const raw pointer.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: