Commit aed1b8a4 authored by jaco's avatar jaco

mac new compiling error fixed 2

parent fe5bcec2
...@@ -127,9 +127,11 @@ static inline int findFromList( const T &word, const vector<T> &strList ) ...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment