vtluu@xxxxxxxxxx said: > vector<int>::iterator it; > int *pi; > pi = it; //error Your code presupposes that vector<int>::iterator is realized as or convertible to int*. This is by no means guaranteed by the standard. See: http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#5_1 Best Kai-Uwe Bux