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:
authorUlrich Germann <Ulrich.Germann@gmail.com>2015-08-07 21:19:04 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-08-07 21:19:04 +0300
commit1d38ca917716c7d8a18703c0ad8aa9c7738cd745 (patch)
treea2db1f9d8a1727013a6748bd2acda12395e02e32 /moses/SearchNormal.cpp
parentc4fc7e6610c5dd7ea94984aea63cfb1c88eac0c9 (diff)
Bug fix: BOOST_FOREACH seems to cause problems.
Diffstat (limited to 'moses/SearchNormal.cpp')
-rw-r--r--moses/SearchNormal.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/moses/SearchNormal.cpp b/moses/SearchNormal.cpp
index 227c27479..e7983a93e 100644
--- a/moses/SearchNormal.cpp
+++ b/moses/SearchNormal.cpp
@@ -69,8 +69,10 @@ ProcessOneStack(HypothesisStack* hstack)
IFVERBOSE(2) stats.StopTimeStack();
// go through each hypothesis on the stack and try to expand it
- BOOST_FOREACH(Hypothesis* h, sourceHypoColl)
- ProcessOneHypothesis(*h);
+ // BOOST_FOREACH(Hypothesis* h, sourceHypoColl)
+ HypothesisStackNormal::const_iterator h;
+ for (h = sourceHypoColl.begin(); h != sourceHypoColl.end(); ++h)
+ ProcessOneHypothesis(**h);
return true;
}