diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-20 21:15:07 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-20 21:15:07 +0000 |
commit | dc579e9ab5e23a63e5bf2d7688ca50ae307cc514 (patch) | |
tree | 3f3ea4f845b18bd83d8eeff2ad7c7cb832c47986 /decoder/dict.h | |
parent | 2786d3478ae3af8184db6daafd4211c2ce7483cb (diff) |
google::dense_hash_map
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@341 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/dict.h')
-rw-r--r-- | decoder/dict.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/decoder/dict.h b/decoder/dict.h index 82e8c0c0..dd433c3e 100644 --- a/decoder/dict.h +++ b/decoder/dict.h @@ -1,8 +1,11 @@ #ifndef DICT_H_ #define DICT_H_ +#include "config.h" + #include <cassert> #include <cstring> + #ifdef HAVE_SPARSEHASH # include <google/dense_hash_map> #else @@ -10,7 +13,6 @@ #endif #include <string> #include <vector> - #include <boost/functional/hash.hpp> #include "wordid.h" @@ -18,9 +20,9 @@ class Dict { typedef #ifdef HAVE_SPARSEHASH - std::tr1::unordered_map -#else google::dense_hash_map +#else + std::tr1::unordered_map #endif <std::string, WordID, boost::hash<std::string> > Map; |