This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin setup 2.510.2.1 does not work because of an invalid iterator.


Krzysztof Duleba wrote:

> {
>     /* Should we erase */
>     pkg.versions::iterator next_i = i;

That should read

      set<packageversion>::iterator next_i = i;

>     ++next_i;
>     if(next_i == pkg.versions.end()){
>         pkg.versions.erase(i);
>         break;
>     }else{

>         pkg::value_type tmp = *next_i;

That should read

          packageversion tmp = *next_i;

>         pkg.versions.erase(i);
>         i = pkg.versions.find(tmp);
>     }
> }else ++i;



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]