Thread: error c2036

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    7

    error c2036

    hello,

    i have a struct -

    Code:
    template <class T> 
    struct AnimalList
    {
    	list<T> myinfo;
    	AnimalList* next;
    };
    and that function -

    Code:
    template <class T> 
    AnimalList<T> Tuna::ageAndBreed() 
    {
    	AnimalList<T> g;
    	......
    	return g;
    }
    now i try call to the function

    Code:
    AnimalList<Animal*> l;
    l.myinfo.front()->ageAndBreed();
    and i get an error : 'struct AnimalList' : unknown size .

    what i do wrong ??

    tnx,
    Last edited by djons; 10-14-2008 at 05:31 PM.

Popular pages Recent additions subscribe to a feed