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

> Passing a const reference in C++ is pass-by-value.

I can cast the const away. The implementation does not hide this detail. The semantics therefore must be understood by the programmer.



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

Search: