This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygwin setup 2.510.2.1 does not work because of an invalid iterator.
- From: "Krzysztof Duleba" <krzysan at skrzynka dot pl>
- To: cygwin at cygwin dot com
- Date: Sun, 11 Sep 2005 14:20:02 +0200
- Subject: Re: cygwin setup 2.510.2.1 does not work because of an invalid iterator.
- References: <20050910.112834.57973656.boochang@m4.kcn.ne.jp> <dg16o0$n7d$1@sea.gmane.org>
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/