i have a header file defined as :
template <typename NodeElement>
class Node{
//public members
public:
something here.....
private:
};
template <typename ListElement>
class List{
public:
something....
Node *nodePtr; //problem here
};
list.h:38: error: ISO C++ forbids declaration of ‘Node’ with no type
list.h:38: error: expected ‘;’ before ‘*’ token
the compiler shows this error.. and i have no idea what is going on..
how should i fix this error?
thanks =D