From aed1b8a49d9b6091287ed43cdd670605b689eabc Mon Sep 17 00:00:00 2001 From: jaco Date: Fri, 25 Jul 2014 18:03:39 +0200 Subject: [PATCH] mac new compiling error fixed 2 --- modules/saliency/src/BING/kyheader.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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