< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index |
You are using a const_iterator.
ScottOn Fri, May 3, 2013 at 11:19 AM, Karlsson <boost.regex@xxxxxxxxx> wrote:
_______________________________________________Hi all, I want to modify(set) the rtp port in the SDP:list<SdpContents::Session::Medium>::const_iterator mediaiter = sdp->session().media().begin();for (; mediaiter!=sdp->session().media().end(); ++mediaiter)
{if (mediaiter->name() == "audio"){mediaiter->port() = localAudioPort;}}The error is: error C2106: '=' : left operand must be l-valueI have read the testSdp.cxx file, found below code:assert(sdp.session().media().front().port() == 12000);
It seems same to my code, why my code got the error ?Thanks
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/