RE: Problem with gcc C++ library

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

 



Try ''typename vector<A>::iterator it1;  //this line doesn't compile"

----
Lev Assinovsky
Aelita Software Corporation 
(now is a part of Quest Software)
O&S InTrust Framework Division, Team Leader
ICQ# 165072909


> -----Original Message-----
> From: Luu Vo [mailto:vtluu@xxxxxxxxxx]
> Sent: Monday, May 31, 2004 2:02 PM
> To: gcc-help@xxxxxxxxxxx
> Subject: Problem with gcc C++ library
> 
> 
> Can you tell me why the following code segment doesn't 
> compile with g++
> while it compiles OK with Ms VC++
> 
> #include <vector>
> 
> template<class T> class C {
>      public:
>      class A {
>          int x;
>      } ;
>      vector<A> v1;   //this line compiles OK
>      vector<T> v2;   //this line compiles OK
>      vector<A>::iterator it1;  //this line doesn't compile
>      vector<T>::iterator it2;  //this line doesn't compile
> };
> 
> Any help will be appreciated.
> Thanks,
> Luu Vo.
> 
> 


[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