iterator compile error on some compilers /Jame Zhang

This commit is contained in:
Hieu Hoang 2014-06-17 19:35:19 +01:00
parent 318323049d
commit 29991e1ede

View File

@ -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()) {