Hacker News new | ask | show | jobs
by themafia 227 days ago
> 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.