Merge pull request #87 from jet47:cmd-parser-fix

This commit is contained in:
marina.kolpakova 2012-10-25 00:40:31 +04:00
commit 772586801b

View File

@ -70,7 +70,7 @@ static void from_str(const string& str, int type, void* dst)
else if( type == Param::REAL ) else if( type == Param::REAL )
ss >> *(double*)dst; ss >> *(double*)dst;
else if( type == Param::STRING ) else if( type == Param::STRING )
ss >> *(string*)dst; *(string*)dst = str;
else else
throw cv::Exception(CV_StsBadArg, "unknown/unsupported parameter type", "", __FILE__, __LINE__); throw cv::Exception(CV_StsBadArg, "unknown/unsupported parameter type", "", __FILE__, __LINE__);