error c2036

hello,

i have a struct -



1
2
3
4
5
template <class T> 
struct AnimalList
{
	list<T> myinfo;
};


and that function -


1
2
3
4
5
6
7
template <class T> 
AnimalList<T> Tuna::ageAndBreed() 
{
	AnimalList<T> g;
	......
	return g;
}



now i try call to the function

1
2
AnimalList<Animal*> l;
l.myinfo.front()->ageAndBreed();


and i get an error : 'struct AnimalList' : unknown size .

what i do wrong ??

tnx,
Topic archived. No new replies allowed.