hello,
i have a struct -
and that function -Code:template <class T>
struct AnimalList
{
list<T> myinfo;
AnimalList* next;
};
now i try call to the functionCode:template <class T>
AnimalList<T> Tuna::ageAndBreed()
{
AnimalList<T> g;
......
return g;
}
and i get an error : 'struct AnimalList' : unknown size .Code:AnimalList<Animal*> l;
l.myinfo.front()->ageAndBreed();
what i do wrong ??
tnx,