about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
authorMartin Nowack <m.nowack@imperial.ac.uk>2019-12-12 15:18:58 +0000
committerCristian Cadar <c.cadar@imperial.ac.uk>2020-02-13 18:13:00 +0000
commit0e34aab465c361b4dd3b7f1d5ff40b312922f921 (patch)
tree349a342b6ea8dcf6b0888bfac82bbfc41aa28a85 /lib
parenta34c5c7604f110a45f20c999f6ff970336673886 (diff)
downloadklee-0e34aab465c361b4dd3b7f1d5ff40b312922f921.tar.gz
Replace old TR1 implementations of unordered_map/set with std::* versions
TR1 implementation got replaced by the std::* equivalents with C++11.
Start to use the standard versions instead of the old ones.
Diffstat (limited to 'lib')
-rw-r--r--lib/Solver/CachingSolver.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/lib/Solver/CachingSolver.cpp b/lib/Solver/CachingSolver.cpp
index 2c7371d0..5e2d45a2 100644
--- a/lib/Solver/CachingSolver.cpp
+++ b/lib/Solver/CachingSolver.cpp
@@ -16,14 +16,7 @@
 #include "klee/Solver/SolverImpl.h"
 #include "klee/Solver/SolverStats.h"
 
-#include <ciso646>
-#ifdef _LIBCPP_VERSION
 #include <unordered_map>
-#define unordered_map std::unordered_map
-#else
-#include <tr1/unordered_map>
-#define unordered_map std::tr1::unordered_map
-#endif
 
 using namespace klee;
 
@@ -65,10 +58,10 @@ private:
     }
   };
 
-  typedef unordered_map<CacheEntry, 
-                        IncompleteSolver::PartialValidity, 
-                        CacheEntryHash> cache_map;
-  
+  typedef std::unordered_map<CacheEntry, IncompleteSolver::PartialValidity,
+                             CacheEntryHash>
+      cache_map;
+
   Solver *solver;
   cache_map cache;