diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-11-19 21:23:19 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-11-19 21:23:19 +0400 |
commit | 22864c2b4b154b2c69518bf773fe73f4c557af0a (patch) | |
tree | 660ee9759c095d2c38b769db69259b38d096fc37 /moses/FF/ControlRecombination.cpp | |
parent | c2c86ce50d1900db55e420dd08f38facfce50501 (diff) |
replace CHECK with UTIL_THROW_IF in Moses
Diffstat (limited to 'moses/FF/ControlRecombination.cpp')
-rw-r--r-- | moses/FF/ControlRecombination.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/moses/FF/ControlRecombination.cpp b/moses/FF/ControlRecombination.cpp index 2396d81e3..35055a53a 100644 --- a/moses/FF/ControlRecombination.cpp +++ b/moses/FF/ControlRecombination.cpp @@ -49,7 +49,8 @@ int ControlRecombinationState::Compare(const FFState& other) const std::vector<float> ControlRecombination::DefaultWeights() const { - CHECK(m_numScoreComponents == 0); + UTIL_THROW_IF(m_numScoreComponents, util::Exception, + "ControlRecombination should not have any scores"); vector<float> ret(0); return ret; } |