Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieu@hoang.co.uk>2013-11-23 00:27:46 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-11-23 00:27:46 +0400
commitf13d0c824456b91fef2588261cbe52ce24c665ba (patch)
tree4c24ab4dff0c05840bcea2333ac522d9b956f7cf /moses/TranslationOptionCollectionConfusionNet.cpp
parent028edf85501013ea06d575c67b5647f939f1f149 (diff)
UTIL_THROW_IF -> UTIL_THROW_IF2
Diffstat (limited to 'moses/TranslationOptionCollectionConfusionNet.cpp')
-rw-r--r--moses/TranslationOptionCollectionConfusionNet.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/TranslationOptionCollectionConfusionNet.cpp b/moses/TranslationOptionCollectionConfusionNet.cpp
index 78ea878f9..a324fe697 100644
--- a/moses/TranslationOptionCollectionConfusionNet.cpp
+++ b/moses/TranslationOptionCollectionConfusionNet.cpp
@@ -81,7 +81,7 @@ TranslationOptionCollectionConfusionNet::TranslationOptionCollectionConfusionNet
const Phrase &prevPhrase = prevPath.GetPhrase();
const ScorePair *prevInputScore = prevPath.GetInputScore();
- UTIL_THROW_IF(prevInputScore == NULL, util::Exception,
+ UTIL_THROW_IF2(prevInputScore == NULL,
"No input score for path: " << prevPath);
// loop thru every word at this position
@@ -111,8 +111,8 @@ TranslationOptionCollectionConfusionNet::TranslationOptionCollectionConfusionNet
InputPathList &TranslationOptionCollectionConfusionNet::GetInputPathList(size_t startPos, size_t endPos)
{
size_t offset = endPos - startPos;
- UTIL_THROW_IF(offset >= m_inputPathMatrix[startPos].size(),
- util::Exception, "Out of bound access: " << offset);
+ UTIL_THROW_IF2(offset >= m_inputPathMatrix[startPos].size(),
+ "Out of bound access: " << offset);
return m_inputPathMatrix[startPos][offset];
}