It'd never occurred to me to use references other than for parameter passing, but now you've pointed it out that does seem pretty obvious. It's a neat approach, but using pointers instead of references would produce virtually identical code.
It'd never occurred to me to use references other than for parameter passing, but now you've pointed it out that does seem pretty obvious. It's a neat approach, but using pointers instead of references would produce virtually identical code.