cocos2d-x :Build errors “min/max is not a member of std”

来源:互联网 发布:摄影作品网站 知乎 编辑:程序博客网 时间:2024/05/29 13:29



参考:https://social.msdn.microsoft.com/Forums/vstudio/en-US/f5915ad0-a9d1-49f3-8643-ffd623f72b93/error-c2039-max-is-not-a-member-of-std?forum=vcgeneral


只是在需要报错min/max is not a member of std的文件增加 <algorithm>头文件即可


就像别人说的那样,不理性,这么常用的std::min/std::max.  居然要程序猿手动导入。。


cocos2d-x:安装: http://blog.163.com/jtyp_2000/blog/static/9910426201392110282602/

0 0