a very strange c++ problem, ask for help!! thanks!!
John (Eljay) Love-Jensen
eljay@adobe.com
Wed Oct 11 01:30:00 GMT 2006
Hi Feng,
> What is the problem? maybe the setting or other reason??
The problem is that the compiler does not know that iterator is a type. You need to specify that it is a type using the typename keyword. Note: the typename keyword is required in this kind of context, and cannot be used in contexts where it is not required.
typename vector< vector<elemType> >::iterator collection_itor = src_collection.begin();
HTH,
--Eljay
More information about the Gcc-help
mailing list