Hacker News new | past | comments | ask | show | jobs | submit login

Raw pointers are fine in many contexts, especially when a reference would not do (e.g. when it's optional).



> Raw pointers are fine in many contexts, especially when a reference would not do (e.g. when it's optional).

I didn't say "always use references", I said, never use raw pointers. Since shared_ptrs can be null, I don't see why this is a valid counterargument.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: