summaryrefslogtreecommitdiff
path: root/decoder/dict.h
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-20 21:15:07 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-20 21:15:07 +0000
commit07e718c343f0e3cde63d3bed94cdba56c222007d (patch)
tree60029b84b9ccbd6158f6d6393de125753a6fbfa5 /decoder/dict.h
parentd598c5072738736716cd4370dd1b6d0eb1322e06 (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.h8
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;