我试图传递 6 个值而不是一个值。
//function that contains the value
siteNEVObjectdic::siteNEVObjectdic(double iLat1, double iLong1, double iLat2, double iLong2, double iLat3, double iLong3)
{
Lat1=iLat1;
Long1=iLong1;
Lat2=iLat2;
Long2=iLong2;
Lat3=iLat3;
Long3=iLong3;
}
multimap<double,double> dic;//initialization
dic.insert(pair<double,double>(2,gcnew siteNEVObjectdic(Lat1,Long1,Lat2,Long2,Lat3,Long3));
出于某种原因,
error C2665: 'std::pair<_Ty1,_Ty2>::pair' : none of the 3 overloads could convert all the argument types
给我这个错误。任何帮助将不胜感激。