diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-11-23 00:27:46 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-11-23 00:27:46 +0400 |
commit | f13d0c824456b91fef2588261cbe52ce24c665ba (patch) | |
tree | 4c24ab4dff0c05840bcea2333ac522d9b956f7cf /moses/Word.cpp | |
parent | 028edf85501013ea06d575c67b5647f939f1f149 (diff) |
UTIL_THROW_IF -> UTIL_THROW_IF2
Diffstat (limited to 'moses/Word.cpp')
-rw-r--r-- | moses/Word.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/Word.cpp b/moses/Word.cpp index 32c3d3163..95dd3fdf4 100644 --- a/moses/Word.cpp +++ b/moses/Word.cpp @@ -74,7 +74,7 @@ std::string Word::GetString(const vector<FactorType> factorType,bool endWithBlan const std::string& factorDelimiter = StaticData::Instance().GetFactorDelimiter(); bool firstPass = true; for (unsigned int i = 0 ; i < factorType.size() ; i++) { - UTIL_THROW_IF(factorType[i] >= MAX_NUM_FACTORS, util::Exception, + UTIL_THROW_IF2(factorType[i] >= MAX_NUM_FACTORS, "Trying to reference factor " << factorType[i] << ". Max factor is " << MAX_NUM_FACTORS); const Factor *factor = m_factorArray[factorType[i]]; |