From 5c7eef3d08ecc2c30bcf0f9a5f17716c21f5bfc3 Mon Sep 17 00:00:00 2001 From: redpony Date: Wed, 4 Aug 2010 21:42:04 +0000 Subject: fix to compile with early versions of boost git-svn-id: https://ws10smt.googlecode.com/svn/trunk@479 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/oracle_bleu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decoder/oracle_bleu.h') 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; -- cgit v1.2.3