The error message is indicating that there is a problem with the conversion of a std::vector<DecodeTypeProfiles> object to a DecodeTypeProfiles& reference.

In the line of code mentioned (line 423), the function OperateJSONData::ParseGetDecodeTypeProfiles is being called with two arguments: jsonRecv and CommonData::Instance()->m_vectDecodeTypeProfiles. The second argument is of type std::vector<DecodeTypeProfiles>, but the function expects a reference to a DecodeTypeProfiles object.

To fix this error, you need to pass a single DecodeTypeProfiles object as the second argument instead of the vector. If you only need to pass one element from the vector, you can do so by accessing it using the index operator ([]) or the at() function. If you need to pass the entire vector, you may need to modify the function signature to accept a vector instead of a single object

homeshareMTGUIMTFirstVersionsrcmtfirstversioncpp423 error cannot convert ‘VectDecodeTypeProfiles’ aka ‘stdvectorDecodeTypeProfiles’ to ‘DecodeTypeProfiles&’ 423 bRetFlag = OperateJSONDat

原文地址: http://www.cveoy.top/t/topic/icbq 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录