Re: [reSIProcate] compile error on Uri.cxx of revision 9177 with visual c++ 2003
You need to change the iterators to const_iterators.  I'll commit a fix as soon as I can.
Thanks,
Scott
On Fri, May 20, 2011 at 4:08 PM, Allen Guan 
<allenguan@xxxxxxxxx> wrote:
Hi, all,
I just checked out the latest revision 9177 and tried to compile it
with visual studio 2003, I got the following errors:
-----------
------ Build started: Project: resiprocate, Configuration: Release Win32 ------
Compiling...
Uri.cxx
Uri.cxx(561) : error C2440: 'type cast' : cannot convert from
'std::vector<_Ty>::const_iterator' to 'std::vector<_Ty>::iterator'
        with
        [
            _Ty=resip::Parameter *
        ]
        and
        [
            _Ty=resip::Parameter *
        ]
        No constructor could take the source type, or constructor
overload resolution was ambiguous
Uri.cxx(566) : error C2440: 'type cast' : cannot convert from
'std::vector<_Ty>::const_iterator' to 'std::vector<_Ty>::iterator'
        with
        [
            _Ty=resip::Parameter *
        ]
        and
        [
            _Ty=resip::Parameter *
        ]
        No constructor could take the source type, or constructor
overload resolution was ambiguous
--------------------------------
they point to the following code:
-----------------------
   for (ParameterList::iterator i = mUnknownParameters.begin();   //
error line 561
        i != mUnknownParameters.end(); ++i)
   {
      unA.insert(*i);
   }
   for (ParameterList::iterator i = other.mUnknownParameters.begin();
// error line 566
        i != other.mUnknownParameters.end(); ++i)
   {
      unB.insert(*i);
   }
-----------------------------
May I know any fix for it? Thanks in advance.
-Allen
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxx
https://list.resiprocate.org/mailman/listinfo/resiprocate-devel