summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu, Ke <wuke@cs.umd.edu>2014-10-10 10:27:31 -0400
committerWu, Ke <wuke@cs.umd.edu>2014-10-10 10:27:31 -0400
commit38c192e1d8536baf722575be471aee2cc83f0101 (patch)
treee152de84f2f1dd1efc16bbbdcbf4bd4fba074f78
parent83a7a1e075e4bac7501fb8aaba11a5c8ecde9707 (diff)
Replace deprecated hash_map with unordred_map
-rw-r--r--utils/maxent.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/maxent.h b/utils/maxent.h
index 88a04e25..b1efd88e 100644
--- a/utils/maxent.h
+++ b/utils/maxent.h
@@ -18,7 +18,7 @@
#define USE_HASH_MAP // if you encounter errors with hash, try commenting out
// this line. (the program will be a bit slower, though)
#ifdef USE_HASH_MAP
-#include <ext/hash_map>
+#include <unordered_map>
#endif
//
@@ -156,7 +156,7 @@ class ME_Model {
struct ME_FeatureBag {
#ifdef USE_HASH_MAP
- typedef __gnu_cxx::hash_map<unsigned int, int> map_type;
+ typedef std::unordered_map<unsigned int, int> map_type;
#else
typedef std::map<unsigned int, int> map_type;
#endif
@@ -210,7 +210,7 @@ class ME_Model {
struct MiniStringBag {
#ifdef USE_HASH_MAP
- typedef __gnu_cxx::hash_map<std::string, int, hashfun_str> map_type;
+ typedef std::unordered_map<std::string, int, hashfun_str> map_type;
#else
typedef std::map<std::string, int> map_type;
#endif