From eff776acd9fb318faf420317a969911ee2cab041 Mon Sep 17 00:00:00 2001 From: "Christoph M. Wintersteiger" Date: Tue, 27 Oct 2015 17:11:40 +0000 Subject: [PATCH] Fixed #include of which is deprecated in VS2015 and will be removed. Detailed error: ...\VC\INCLUDE\hash_set(17): 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. (compiling source file ..\..\..\src\test\hashtable.cpp). --- src/test/hashtable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/hashtable.cpp b/src/test/hashtable.cpp index b01518985..47fae454a 100644 --- a/src/test/hashtable.cpp +++ b/src/test/hashtable.cpp @@ -18,7 +18,7 @@ Revision History: --*/ #ifdef _WINDOWS #include -#include +#include #include #include"hashtable.h" @@ -30,7 +30,7 @@ Revision History: struct int_hash_proc { unsigned operator()(int x) const { return x * 3; } }; typedef int_hashtable > int_set; -typedef stdext::hash_set > > safe_int_set; +typedef std::unordered_set > > safe_int_set; // typedef safe_int_set int_set; inline bool contains(int_set & h, int i) {