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

Re: [reSIProcate-users] Compile error with VS2013


FYI: I'm use the vs2013 convert the reSIProcate_10_0.sln then compile it.


On Wed, Mar 12, 2014 at 6:44 PM, Herbert Karajan <boost.regex@xxxxxxxxx> wrote:
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;