diff options
author | Daniel Dunbar <daniel@zuster.org> | 2014-09-12 14:08:26 -0700 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2014-09-12 17:39:17 -0700 |
commit | cc364493808ba1453d6ea84124f16ace0e975194 (patch) | |
tree | 084288b99a1b10295a457ba255709cf6de717e3a /lib | |
parent | d6f8d78a31becd3c2c397bb1be8c9ad707d33371 (diff) | |
download | klee-cc364493808ba1453d6ea84124f16ace0e975194.tar.gz |
When building against libc++ (vs libstdcxx), use standard unordered_{map,set} includes.
- I'm not sure what the status of libstdcxx's c++11 support is. It may be we can just move over to <unordered_map> everywhere, but I don't have a Linux test machine handy at the moment.
Diffstat (limited to 'lib')
-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; |