mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 05:14:36 +03:00
iterator compile error on some compilers /Jame Zhang
This commit is contained in:
parent
318323049d
commit
29991e1ede
@ -86,7 +86,7 @@ void SearchCubePruning::ProcessSentence()
|
|||||||
// go through each stack
|
// go through each stack
|
||||||
size_t stackNo = 1;
|
size_t stackNo = 1;
|
||||||
std::vector < HypothesisStack* >::iterator iterStack;
|
std::vector < HypothesisStack* >::iterator iterStack;
|
||||||
for (iterStack = ++m_hypoStackColl.begin() ; iterStack != m_hypoStackColl.end() ; ++iterStack) {
|
for (iterStack = m_hypoStackColl.begin() + 1 ; iterStack != m_hypoStackColl.end() ; ++iterStack) {
|
||||||
// check if decoding ran out of time
|
// check if decoding ran out of time
|
||||||
double _elapsed_time = GetUserTime();
|
double _elapsed_time = GetUserTime();
|
||||||
if (_elapsed_time > staticData.GetTimeoutThreshold()) {
|
if (_elapsed_time > staticData.GetTimeoutThreshold()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user