vs2015 编译错误 C2338 解决
如下在编译程序时提示错误信息:
error C2338: <hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
头文件中加上这句话试试:
#define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS 1
相关的解释说明见:
http://stackoverflow.com/questio ... lease-use-unordered
posted on 2016-12-03 10:56 westnight 阅读(2344) 评论(0) 编辑 收藏 举报