diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-13 08:31:51 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-13 08:31:51 +0000 |
commit | 86bb77e674c4df9c46e3e2d8bba8a5c8b42bb98c (patch) | |
tree | 3ecbdee8963cd951aabc9537b6a7a335a8e3263c /decoder/cfg.cc | |
parent | cf54677dac448084f38cf54d2596a2078492fce6 (diff) |
boost::hash
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@541 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/cfg.cc')
-rwxr-xr-x | decoder/cfg.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/cfg.cc b/decoder/cfg.cc index a279c74a..c2d96b33 100755 --- a/decoder/cfg.cc +++ b/decoder/cfg.cc @@ -109,7 +109,7 @@ struct prob_pos { }//ns void CFG::UniqRules(NTHandle ni) { - typedef HASH_MAP<RHS,prob_pos> BestRHS; // faster to use trie? maybe. + typedef HASH_MAP<RHS,prob_pos,boost::hash<RHS> > BestRHS; // faster to use trie? maybe. BestRHS bestp; // once inserted, the position part (output index) never changes. but the prob may be improved (overwrite ruleid at that position). HASH_MAP_EMPTY(bestp,null_rhs); Ruleids &adj=nts[ni].ruleids; |