From 482edd0b02842871889b66d05036729773d1089e Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Tue, 4 Oct 2011 10:28:40 +0200 Subject: [PATCH] Switching Hashtable from google sparsehash to boost::unordered_map --- DataStructures/HashTable.h | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/DataStructures/HashTable.h b/DataStructures/HashTable.h index e37993a1c..dc974f7ff 100644 --- a/DataStructures/HashTable.h +++ b/DataStructures/HashTable.h @@ -24,25 +24,13 @@ or see http://www.gnu.org/licenses/agpl.txt. #ifndef HASHTABLE_H_ #define HASHTABLE_H_ -#include - -#include -#include - -namespace __gnu_cxx -{ - template<> struct hash { - size_t operator()(const std::string& x) const { - return hash()(x.c_str()); - } - }; -} +#include template class HashTable { - typedef google::sparse_hash_map MyHashTable; + typedef boost::unordered_map MyHashTable; public: - typedef typename google::sparse_hash_map::const_iterator MyIterator; + typedef typename boost::unordered_map::const_iterator MyIterator; typedef MyIterator iterator; HashTable() { } HashTable(const unsigned size) {