Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
3d154c9d
Commit
3d154c9d
authored
May 17, 2011
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build problems on Windows
parent
0f5f60f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
core.hpp
modules/core/include/opencv2/core/core.hpp
+8
-8
CommandLineParser.cpp
modules/core/src/CommandLineParser.cpp
+1
-1
No files found.
modules/core/include/opencv2/core/core.hpp
View file @
3d154c9d
...
...
@@ -4178,7 +4178,7 @@ protected:
cv::Size size = parser.get<cv::Size>("--size");
string inputFile = parser.get<string>("--inputFile");
*/
class
CommandLineParser
class
C
V_EXPORTS
C
ommandLineParser
{
public
:
//! the default constructor
...
...
@@ -4257,10 +4257,10 @@ protected:
}
};
template
<>
template
<>
CV_EXPORTS
std
::
vector
<
std
::
string
>
CommandLineParser
::
getVec
<
std
::
string
>
(
const
std
::
string
&
keys
);
template
<
typename
_Tp
>
template
<
typename
_Tp
>
inline
std
::
vector
<
_Tp
>
CommandLineParser
::
getVec
(
const
std
::
string
&
keys
)
{
if
(
!
has
(
keys
))
...
...
@@ -4277,19 +4277,19 @@ std::vector<_Tp> CommandLineParser::getVec(const std::string& keys)
return
res
;
}
template
<>
template
<>
CV_EXPORTS
std
::
string
CommandLineParser
::
fromString
<
std
::
string
>
(
const
std
::
string
&
str
);
template
<>
template
<>
CV_EXPORTS
int
CommandLineParser
::
fromString
<
int
>
(
const
std
::
string
&
str
);
template
<>
template
<>
CV_EXPORTS
unsigned
int
CommandLineParser
::
fromString
<
unsigned
int
>
(
const
std
::
string
&
str
);
template
<>
template
<>
CV_EXPORTS
double
CommandLineParser
::
fromString
<
double
>
(
const
std
::
string
&
str
);
template
<>
template
<>
CV_EXPORTS
cv
::
Size
CommandLineParser
::
fromStringsVec
<
cv
::
Size
>
(
const
std
::
vector
<
std
::
string
>&
str
);
}
...
...
modules/core/src/CommandLineParser.cpp
View file @
3d154c9d
...
...
@@ -32,7 +32,7 @@ void PreprocessArgs(int _argc, const char* _argv[], int& argc, char**& argv)
find_symbol
=
buffer_string
.
find
(
'='
);
if
(
find_symbol
==
-
1
)
buffer_vector
.
push_back
(
buffer_string
);
else
if
(
find_symbol
==
0
||
find_symbol
==
(
buffer_string
.
length
()
-
1
))
else
if
(
find_symbol
==
0
||
find_symbol
==
(
(
int
)
buffer_string
.
length
()
-
1
))
{
buffer_string
.
erase
(
find_symbol
,
(
find_symbol
+
1
));
buffer_vector
.
push_back
(
buffer_string
);
...
...
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