On Thursday 09 Jun 2005 23:16, fons adriaensen wrote:
>
> int access(int *v, int i)
> {
> return v[i];
> }
Of course, passing that pointer by value is horribly inefficient.
int access(int *const &v, int i)
{
return v[i];
}
Chris
Received on Fri Jun 10 04:15:06 2005
This archive was generated by hypermail 2.1.8 : Fri Jun 10 2005 - 04:15:06 EEST