fixed string->string conversion

This commit is contained in:
Vladislav Vinogradov 2012-10-23 15:24:21 +04:00
parent 1cb21d292b
commit 26f9534544

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__);