Development/삽질의 추억

VS2015 <hash_map> Error C2338

키르히아이스 2016. 2. 16. 19:58

참고 : http://stackoverflow.com/questions/30430789/c-hash-deprecation-warning

VS2015 에서 이전 버전 VS 프로젝트 컴파일 시 hash_map 에러 발생 : C2338

IntelliSense: static assertion failed with "<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."
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.    


프로젝트 속성 -> C/C++ -> 전처리기에 아래 항목 추가

_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1;