diff options
Diffstat (limited to 'lib/Solver/CachingSolver.cpp')
-rw-r--r-- | lib/Solver/CachingSolver.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/Solver/CachingSolver.cpp b/lib/Solver/CachingSolver.cpp index 674d4627..cfe08a96 100644 --- a/lib/Solver/CachingSolver.cpp +++ b/lib/Solver/CachingSolver.cpp @@ -17,7 +17,14 @@ #include "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; @@ -59,9 +66,9 @@ private: } }; - typedef std::tr1::unordered_map<CacheEntry, - IncompleteSolver::PartialValidity, - CacheEntryHash> cache_map; + typedef unordered_map<CacheEntry, + IncompleteSolver::PartialValidity, + CacheEntryHash> cache_map; Solver *solver; cache_map cache; |