VS2015静态断言失败How to fix hash_map is deprecated and will be REMOVED

问题现象:

静态断言失败,原因是static assertion failed with " is    
deprecated and will be REMOVED. Please use . You can define
_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have 
received this warning

问题解决:

1、注释掉报错行

2、在使用include之前,加上define
_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS定义

3、使用unordered_map代替hash_map

以上三种方法任选其一

 

你可能感兴趣的:(.NET)