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 17:19:23 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-11-19 17:19:23 +0400
commitc2c86ce50d1900db55e420dd08f38facfce50501 (patch)
tree85ca7cb5d2445dd60cd96325945e14a9626c50b7 /moses/FeatureVector.h
parent90d115496515c7f6e1383c19694bb91e21fdcbe9 (diff)
replace CHECK with UTIL_THROW_IF in Moses
Diffstat (limited to 'moses/FeatureVector.h')
-rw-r--r--moses/FeatureVector.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/FeatureVector.h b/moses/FeatureVector.h
index 412088b55..5fb4d9f0d 100644
--- a/moses/FeatureVector.h
+++ b/moses/FeatureVector.h
@@ -44,7 +44,7 @@
#include <boost/thread/shared_mutex.hpp>
#endif
-#include "util/check.hh"
+#include "util/exception.hh"
#include "util/string_piece.hh"
namespace Moses
@@ -299,7 +299,7 @@ private:
ar >> names;
ar >> values;
ar >> m_coreFeatures;
- CHECK(names.size() == values.size());
+ UTIL_THROW_IF(names.size() != values.size(), util::Exception, "Error");
for (size_t i = 0; i < names.size(); ++i) {
set(FName(names[i]), values[i]);
}