So this is part ofthe code that I have written
class TimeLogger: public Node {
private:
List list;
Node *&curr;
public:
TimeLogger()
{
curr = 0;
}
with in main I call TimeLogger tL and so at first it told me that my problem was that I didnt have an appropriate default constructor, so I put a constructor in, and now I get this:
error C2758: 'TimeLogger::cu rr' : must be initialized in constructor base/member initializer list
Any Ideas????
class TimeLogger: public Node {
private:
List list;
Node *&curr;
public:
TimeLogger()
{
curr = 0;
}
with in main I call TimeLogger tL and so at first it told me that my problem was that I didnt have an appropriate default constructor, so I put a constructor in, and now I get this:
error C2758: 'TimeLogger::cu rr' : must be initialized in constructor base/member initializer list
Any Ideas????
Comment