Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I really don’t see what the big deal is? Generally the only time you should be returning or passing around a unique_ptr is when you’re actually transferring ownership of the referenced object. Otherwise just dereference it and pass around a reference to the underlying object.


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

Search: