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
浙公网安备 33010602011771号