struct foo {
  int *p;
};

void someFunction(const foo& theFoo)
{
	theFoo.p[0] = 10;
}

int main()
{
   foo aFoo;
   aFoo.p = new int;
   someFunction(aFoo);
}