Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

SpaceMunkee

Error 2784:

This topic is 5138 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m getting the following error when trying to implement stl lists into my particle code. c:\dev\cube\src\particle.cpp(58) : error C2784: ''bool __cdecl std::operator <(const class std::list<_Ty,_A> &,const class std::list<_Ty,_A> &)'' : could not deduce template argument for ''const class std::list<_Ty,_A> &'' from ''class std::list >::iterator'' I only get this error when trying to use the iterator in a for loop. when I use it in a while statement it doesn''t return an error. Does anyone have any experience with this? I''m using VC 6 with SP5. Thanks, Doug

Share this post


Link to post
Share on other sites
Advertisement
I think I figured out a way around it. It looks like it doesn''t like the ''<'' than operator in my for loop because its not overloaded for list in stl. So I''ll just use ''!=''.

-Doug

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!