no matching function for call to 'find(std::list<int>::iterator,std::list<int>::iterator, int&)'问题

cocos2dx用find算法,编译运行正常,但是在eclipse中混编时候,却报出如题中错误,开始以为eclipse不支持呢,后来想想这是标准的c++算法,应该不会不支持。搜了下,原来只需要添加上对算法库的头文件引用即可:#include <algorithm>,再次编译就OK了。

原文地址:https://www.cnblogs.com/playerboy/p/3944250.html