nontas.v |
04-28-2012 04:24 PM |
ERROR: Class does not name a type
Well, I've got a project in my university. It's about a supermarket simulation programm.
There's a lot of code, I'll put only the one that matters.
Code:
template<class T>
class ChainNode {
friend Chain<T>;
private:
//prive data
};
template<class T>
class Chain {
public:
//public data
private:
//private data
};
After trying to compile I get the error: "Chain does not name a type"
I tried also to initialize the Chain class at first but no results.
I'm still kinda newbie in c++, so I would appreciate some plain explanation.
Thanks :)
|