Skip to content

Commit 2832d10

Browse files
author
D. A. Pellegrino
committed
#244 Replaced deprecated <ext/hash_map> with standard <unordered_map>.
1 parent df0704d commit 2832d10

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

libhdt/src/dictionary/PlainDictionary.hpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,7 @@
4141
#include <algorithm>
4242
#include <fstream>
4343
#include <iostream>
44-
45-
#ifndef WIN32
46-
#include <ext/hash_map>
47-
#else
4844
#include <unordered_map>
49-
#endif
5045

5146
//#define GOOGLE_HASH
5247

@@ -88,13 +83,8 @@ typedef std::pair<const char*, DictionaryEntry *> DictEntryPair;
8883
typedef sparse_hash_map<const char *, DictionaryEntry *, hash<const char *>, str_cmp> DictEntryHash;
8984
#else
9085

91-
#ifdef WIN32
92-
/*typedef std::hash_map<const char *, DictionaryEntry *, hash<const char *>, str_cmp> DictEntryHash;*/
9386
typedef unordered_map<const char *, DictionaryEntry *, hash<const char *>, str_cmp> DictEntryHash;
94-
#else
95-
typedef std::hash_map<const char *, DictionaryEntry *, __gnu_cxx::hash<const char *>, str_cmp> DictEntryHash;
9687

97-
#endif
9888
#endif
9989

10090
typedef DictEntryHash::const_iterator DictEntryIt;

0 commit comments

Comments
 (0)