From 2c1cc5f9f2aca7ee5ea1bda9631b5e478edb0ad5 Mon Sep 17 00:00:00 2001 From: graehl Date: Thu, 8 Jul 2010 19:32:26 +0000 Subject: compile git-svn-id: https://ws10smt.googlecode.com/svn/trunk@188 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/viterbi.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decoder/viterbi.cc') diff --git a/decoder/viterbi.cc b/decoder/viterbi.cc index ea0cd95e..f11b77ec 100644 --- a/decoder/viterbi.cc +++ b/decoder/viterbi.cc @@ -124,12 +124,12 @@ FeatureVector ViterbiFeatures(Hypergraph const& hg,FeatureWeights const* weights double fv=r.dot(*weights); const double EPSILON=1e-5; if (!close_enough(logp,fv,EPSILON)) { - complaint="ViterbiFeatures log prob disagrees with features.dot(weights)"+boost::lexical_cast(logp)+"!="+boost::lexical_cast(fv); + string complaint="ViterbiFeatures log prob disagrees with features.dot(weights)"+boost::lexical_cast(logp)+"!="+boost::lexical_cast(fv); if (fatal_dotprod_disagreement) throw std::runtime_error(complaint); else cerr<