diff --git a/modules/saliency/src/BING/kyheader.h b/modules/saliency/src/BING/kyheader.h index 2e683fe32..0576d62d4 100644 --- a/modules/saliency/src/BING/kyheader.h +++ b/modules/saliency/src/BING/kyheader.h @@ -127,9 +127,11 @@ static inline int findFromList( const T &word, const vector &strList ) } else { - vector::iterator index = std::distance( strList.begin(), it ); + int index = it - strList.begin(); + return index; + //vector::iterator index = std::distance( strList.begin(), it ); //cout << "index" <<" "<< index << endl; - return int(index); + //return int( index ); } } /*template