T
Tomas Ukkonen
Hi
I'm currently trying to make my old code to compile with
new gcc 3.4.0. It compiles correctly in 3.3.3 so I'm not
sure if this is compiler bug or not.
Code very close to a example below fails to compile
because gcc 3.4.0 complains:
"error: expected a type got 'Y<T>:article'"
at Y<T>::func()'s iterator declaration.
EXAMPLE
(I actually haven't tried to get this compile).
-----------------------------------
example.h:
template <typename T>
class Y{
public:
struct particle {
OtherClass<T> data;
};
void func();
std::vector<Y<T>:article> list;
}
example.cpp:
template <typename T>
void Y<T>::func(){
typename std::vector<Y<T>:article>::iterator i;
i = list.begin();
while(i != list.end()){
// do something
}
}
--------------------------
TIA,
Tomas Ukkonen
I'm currently trying to make my old code to compile with
new gcc 3.4.0. It compiles correctly in 3.3.3 so I'm not
sure if this is compiler bug or not.
Code very close to a example below fails to compile
because gcc 3.4.0 complains:
"error: expected a type got 'Y<T>:article'"
at Y<T>::func()'s iterator declaration.
EXAMPLE
(I actually haven't tried to get this compile).
-----------------------------------
example.h:
template <typename T>
class Y{
public:
struct particle {
OtherClass<T> data;
};
void func();
std::vector<Y<T>:article> list;
}
example.cpp:
template <typename T>
void Y<T>::func(){
typename std::vector<Y<T>:article>::iterator i;
i = list.begin();
while(i != list.end()){
// do something
}
}
--------------------------
TIA,
Tomas Ukkonen