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

just pass a const reference. It's immutable anyway.


Unless that ref holds a mutable reference. C++ doesnt make it easy at all to have something be truly immutable.




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

Search: