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

[reSIProcate] compile error on Uri.cxx of revision 9177 with visual c++ 2003


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