mac new compiling error fixed 2

pull/39/head
jaco 11 years ago
parent fe5bcec277
commit aed1b8a49d
  1. 6
      modules/saliency/src/BING/kyheader.h

@ -127,9 +127,11 @@ static inline int findFromList( const T &word, const vector<T> &strList )
} }
else else
{ {
vector<String>::iterator index = std::distance( strList.begin(), it ); int index = it - strList.begin();
return index;
//vector<String>::iterator index = std::distance( strList.begin(), it );
//cout << "index" <<" "<< index << endl; //cout << "index" <<" "<< index << endl;
return int(index); //return int( index );
} }
} }
/*template<typename T> /*template<typename T>

Loading…
Cancel
Save