3 ms·
To stay on topic, if x was declared const, you wouldn't have to guess. The compiler would tell you.
by gpderetta 5y ago
To stay on topic, if x was declared const, you wouldn't have to guess. The compiler would tell you.
- lelanthran 5y ago> To stay on topic, if x was declared const, you wouldn't have to guess. The compiler would tell you. Frequently it can't be declared constant, because it is being changed in that scope as it runs.
- tsimionescu 5y agoThis was a discussion about passing out (or inout) parameters as `T&` vs `T*`. By definition, these parameters can't be const, so const is irrelevant to this thread.
- gpderetta 5y agoGood point.