< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate-users] Compile error with VS2013


I got an error when compile it by VS2013:

  MessageWaitingContents.cxx
MessageWaitingContents.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 qualifiers
MessageWaitingContents.cxx(600): error C2228: left of '.first' must have class/struct/union


If 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;