< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index |
I got an error when compile it by VS2013:MessageWaitingContents.cxxMessageWaitingContents.cxx(600): error C2664: 'std::pair<resip::Data,resip::Data> std::make_pair<resip::Data,resip::Data>(_Ty1 &&,_Ty2 &&)' : cannot convert argument 1 from 'const resip::Data' to 'resip::Data &&'with[_Ty1=resip::Data, _Ty2=resip::Data]Conversion loses qualifiersMessageWaitingContents.cxx(600): error C2228: left of '.first' must have class/struct/unionIf change the mak_pair to pair in below line then got it fixed:h=ncthis->mExtensions.insert(std::make_pair<Data, Data>(hn,Data::Empty)).first;