3 ms·
You can never actually replace what the reference is bound to in C++, you can only call the assignment operator. The real distinction here is that in languages
by quicknir 9y ago
You can never actually replace what the reference is bound to in C++, you can only call the assignment operator. The real distinction here is that in languages like Java and python, assignment is fundamentally different from mutation. In C++ there is no distinction, assignment is just a form of mutation.
- deleted 9y ago[deleted]