mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 22:00:25 +08:00
Merge pull request #87 from jet47:cmd-parser-fix
This commit is contained in:
commit
772586801b
@ -70,7 +70,7 @@ static void from_str(const string& str, int type, void* dst)
|
||||
else if( type == Param::REAL )
|
||||
ss >> *(double*)dst;
|
||||
else if( type == Param::STRING )
|
||||
ss >> *(string*)dst;
|
||||
*(string*)dst = str;
|
||||
else
|
||||
throw cv::Exception(CV_StsBadArg, "unknown/unsupported parameter type", "", __FILE__, __LINE__);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user