Iterator errors


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by Geoff Zelenka on April 18, 2001 at 18:35:26:

I get the following error when I try to initialize an iterator:

G:\Program Files\Microsoft Visual Studio\MyProjects\ecosim\EcoSystemClass.cpp(22) : error C2440: 'initializing' : cannot convert from 'class AnimalClass *' to 'class std::list >::iterator
'
No constructor could take the source type, or constructor overload resolution was ambiguous

The line that caused the error is:

list::iterator iter = Critters.front();

Any help would be greatly appreciated.
Thanks,
Geoff



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]