mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 10:25:18 +00:00
Fixed #include of <hash_set> which is deprecated in VS2015 and will be removed.
Detailed error: ...\VC\INCLUDE\hash_set(17): error C2338: <hash_set> is deprecated and will be REMOVED. Please use <unordered_set>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning. (compiling source file ..\..\..\src\test\hashtable.cpp).
This commit is contained in:
parent
97d97f4694
commit
eff776acd9
|
@ -18,7 +18,7 @@ Revision History:
|
|||
--*/
|
||||
#ifdef _WINDOWS
|
||||
#include<iostream>
|
||||
#include<hash_set>
|
||||
#include<unordered_set>
|
||||
#include<stdlib.h>
|
||||
|
||||
#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_hash_proc, default_eq<int> > int_set;
|
||||
typedef stdext::hash_set<int, stdext::hash_compare<int, std::less<int> > > safe_int_set;
|
||||
typedef std::unordered_set<int, std::hash_compare<int, std::less<int> > > safe_int_set;
|
||||
// typedef safe_int_set int_set;
|
||||
|
||||
inline bool contains(int_set & h, int i) {
|
||||
|
|
Loading…
Reference in a new issue