error C2338: hash_map is deprecated and will be REMOVED. Please use unordered_map. You can defi

1283 단어
error C2338:  is deprecated and will be REMOVED. Please use . You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
#ifndef _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS
static_assert(false, " is deprecated and will be REMOVED. "
	"Please use . You can define "
	"_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS "
	"to acknowledge that you have received this warning.");
 #endif /* _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS */

hash_map은 C++ 비표준 STL입니다. 표준화 추진으로 인해hash_맵은 비표준 용기에 속합니다. 앞으로 unordered_맵으로 대체합니다.unorder_ 사용을 권장합니다.맵 대체 hash_맵, 해결 방법
(1) 교체 또는
(2) 매크로 정의 무시 오류
#define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS // 
 #ifndef _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS
static_assert(false, " is deprecated and will be REMOVED. "
	"Please use . You can define "
	"_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS "
	"to acknowledge that you have received this warning.");
 #endif /* _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS */

좋은 웹페이지 즐겨찾기