RE: a very strange c++ problem, ask for help!! thanks!!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux