summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Dyer <cdyer@Chriss-MacBook-Air.local>2013-01-07 18:02:20 -0500
committerChris Dyer <cdyer@Chriss-MacBook-Air.local>2013-01-07 18:02:20 -0500
commit5b5fd62f6fae315e3be55c54984d3385858e034e (patch)
treeb60556361a8945398a14e5fd211da9861cc0dd2d
parentdf1793f8ba6b4ea8097c94319eb93838bc497c28 (diff)
fix compile error on older gccs
-rw-r--r--word-aligner/fast_align.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/word-aligner/fast_align.cc b/word-aligner/fast_align.cc
index 9d698074..9eb1dbc6 100644
--- a/word-aligner/fast_align.cc
+++ b/word-aligner/fast_align.cc
@@ -213,7 +213,7 @@ int main(int argc, char** argv) {
if (favor_diagonal && optimize_tension && iter > 0) {
for (int ii = 0; ii < 8; ++ii) {
double mod_feat = 0;
- unordered_map<pair<short,short>,unsigned>::iterator it = size_counts.begin();
+ unordered_map<pair<short,short>,unsigned,boost::hash<pair<short, short> > >::iterator it = size_counts.begin();
for(; it != size_counts.end(); ++it) {
const pair<short,short>& p = it->first;
for (short j = 1; j <= p.first; ++j)