じゃあ
if ( v.size() == 0 )
throw "unko";
foo(&v[0], &v[0] + v.size());