Int main ()
{
Vector
Vector
Vitr=VCT. The begin ();
testfun (vitr); //in VC6 vitr itself is type int * and can directly transfer the correct values are not
testfun (& amp; * vitr); //in 2015 directly use vitr complains, I use & amp; * transformation, but in the case of the vector is empty this conversion error
return 0;
}
Long testfun ( int * inint) {
.
return 0;
}
In 2015, iterator needs through & amp; * only with VC6 under transformation in the same type, but let me now empty vector approach directly won't work,, have what good advice to avoid this kind of mistake?