4 ms·
> 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
by themafia 1y 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.