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 <hieuhoang@gmail.com>2013-11-19 21:23:19 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-11-19 21:23:19 +0400
commit22864c2b4b154b2c69518bf773fe73f4c557af0a (patch)
tree660ee9759c095d2c38b769db69259b38d096fc37 /moses/RuleCube.h
parentc2c86ce50d1900db55e420dd08f38facfce50501 (diff)
replace CHECK with UTIL_THROW_IF in Moses
Diffstat (limited to 'moses/RuleCube.h')
-rw-r--r--moses/RuleCube.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/RuleCube.h b/moses/RuleCube.h
index 10dea70ad..e6d8ac3f6 100644
--- a/moses/RuleCube.h
+++ b/moses/RuleCube.h
@@ -27,7 +27,7 @@
#include <boost/unordered_set.hpp>
#include <boost/version.hpp>
-#include "util/check.hh"
+#include "util/exception.hh"
#include <queue>
#include <set>
#include <vector>
@@ -97,7 +97,7 @@ public:
~RuleCube();
float GetTopScore() const {
- CHECK(!m_queue.empty());
+ UTIL_THROW_IF(m_queue.empty(), util::Exception, "Empty queue, nothing to pop");
RuleCubeItem *item = m_queue.top();
return item->GetScore();
}