diff options
author | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-04 21:42:04 +0000 |
---|---|---|
committer | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-04 21:42:04 +0000 |
commit | a3baaea9edaf8a8e058ab5db3ba63200b9471621 (patch) | |
tree | 02152f6bfcdb2dd0de6c9fea4e7b6f8673a37de6 /decoder/oracle_bleu.h | |
parent | 8541440f49975f2265c56c550fc7424dc8f88453 (diff) |
fix to compile with early versions of boost
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@479 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/oracle_bleu.h')
-rwxr-xr-x | decoder/oracle_bleu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/oracle_bleu.h b/decoder/oracle_bleu.h index 56ff8b72..932378e5 100755 --- a/decoder/oracle_bleu.h +++ b/decoder/oracle_bleu.h @@ -234,7 +234,7 @@ struct OracleBleu { double bleu_scale_ = doc_src_length * doc_score->ComputeScore(); doc_score->PlusEquals(*sentscore); doc_score->TimesEquals(scale_oracle); - sentscore.reset(); + ScoreP().swap(sentscore); doc_src_length = (doc_src_length + tmp_src_length) * scale_oracle; if (out) { std::string d; |