Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
aed1b8a4
Commit
aed1b8a4
authored
Jul 25, 2014
by
jaco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mac new compiling error fixed 2
parent
fe5bcec2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
kyheader.h
modules/saliency/src/BING/kyheader.h
+4
-2
No files found.
modules/saliency/src/BING/kyheader.h
View file @
aed1b8a4
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment