little fix in command line parser - catch unknown parameter types
This commit is contained in:
parent
0598f33a85
commit
7c13dc6cb3
@ -71,6 +71,8 @@ static void from_str(const string& str, int type, void* dst)
|
||||
ss >> *(double*)dst;
|
||||
else if( type == Param::STRING )
|
||||
ss >> *(string*)dst;
|
||||
else
|
||||
CV_Error(CV_StsBadArg, "unknown/unsupported parameter type");
|
||||
|
||||
if (ss.fail())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user