i have certainly used (*it). in my code with various collection classes and had VAX produce the correct suggestions.
using .NET 2003 and VAX 1297 the test code:
std::vector<QString> places;
places.push_back("florida");
places.push_back("mars");
std::vector<QString>::iterator it;
int nTotalLength = 0;
for(it = places.begin(); it != places.end(); ++it) {
nTotalLength += (*it).length();
}
compiles just fine. i have used QString since it is a class i am familiar with. when i use:
(*it).|
i get a listbox giving the members of the QString class. when i use:
(*it)->|
i get a listbox showing a different set of members, at a guess std::vector
are you sure you should be doing (*it)-> ?