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/FloydWarshall.cpp
parent90d115496515c7f6e1383c19694bb91e21fdcbe9 (diff)
replace CHECK with UTIL_THROW_IF in Moses
Diffstat (limited to 'moses/FloydWarshall.cpp')
-rw-r--r--moses/FloydWarshall.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/FloydWarshall.cpp b/moses/FloydWarshall.cpp
index e63de819b..87c863e4c 100644
--- a/moses/FloydWarshall.cpp
+++ b/moses/FloydWarshall.cpp
@@ -1,4 +1,4 @@
-#include "util/check.hh"
+#include "util/exception.hh"
#include <climits>
#include <vector>
@@ -11,7 +11,7 @@ using namespace std;
// All-pairs shortest path algorithm
void floyd_warshall(const std::vector<std::vector<bool> >& edges, std::vector<std::vector<int> >& dist)
{
- CHECK(edges.size() == edges.front().size());
+ UTIL_THROW_IF(edges.size() != edges.front().size(), util::Exception, "Error");
dist.clear();
dist.resize(edges.size(), std::vector<int>(edges.size(), 0));