On Thu, Jun 09, 2005 at 09:39:21PM +0300, Jussi Laako wrote:
int
access(std::vector<int> v, int i)
{
return v[i];
}
At least you are making copy here, should be
int access(std::vector<int> &v, int i)
No such problem with
int access(int *v, int i)
{
return v[i];
}
:-) :-) :-)