I have this lines:
class ModulePeople : public Module {
public:
std::list<People> & list_people;
std::list<People>::iterator it;
}
When I try to compile I have this error:
Compiler Error C2758
'ModulePeople': a member of reference type must be initialized
This error appears in this line for example:
it = list_people.begin();
But I don't really know how to inicializate this kind of variable, because i can't do it to NULL. If somebody can help me it would be very grateful.