Hash_map is a C++ non-standard STL. Because of the advancement of standardization, hash_map is a non-standard container, and it will be replaced by unordered_map in the future. Suggest that we use unorder_map instead of hash_map, the solution
(1) Replace <hash_map> with <unorder_map> or
(2) Add macro definition to ignore this error
#define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS //Adding this macro definition means that no error is reported
#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 */
Read More:
- [Go] Solve the fatal error: concurrent map writes map is not concurrently safe
- How to Solve Go Error: concurrent map iteration and map write
- Golang Error: fatal error: concurrent map read and map writ
- [Solved] eggjs Error: Warning: Current Server Discovery and Monitoring engine is deprecated, and will be rem…
- [Solved] removeerror: ‘requests’ is a dependency of CONDA and cannot be removed from
- Max virtual memory areas vm.max_map_count [65530] is too low, increase to at least
- Vue Import Baidu map error: BMap is not defined, eslint BMap reports an error
- [Solved] RemoveError: ‘setuptools’ is a dependency of conda and cannot be removed from conda’s operating en
- [Solved] cocopod Error: failed: undefined method `map‘ for nil:NilClass
- How to Solve Error: Missing type map configuration or unsupported mapping
- [Solved] Searching for inspections failed: undefined method `map‘ for nil:NilClass“
- How to Solve RemoveError: setuptools is a dependency of conda and cannot be removed from conda
- [Solved] IP Core Map Compile Error: Buffers of the same direction cannot beplaced in series.
- How to Solve Cordova integrates Gaode Map key error
- How to Solve Error: IncompleteElementException: Could not find result map…
- [Solved] ‘pyopenssl’ is a dependency of conda and cannot be removed from requests’ is a dependency of conda
- Failed to remove multipath map 320b508ca45022b80 [How to Solve]
- [Solved] Golang Error: fatal error: concurrent map writes
- [Solved] Eclipse Connect Hadoop error: /An internal error occurred during: “Map/Reduce location status updater“
- [Solved] volatile was removed and now has no effect. Use `with torch.no_grad():` instead.