Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: "Krzysztof Duleba" Subject: Re: cygwin setup 2.510.2.1 does not work because of an invalid iterator. Date: Sun, 11 Sep 2005 14:20:02 +0200 Lines: 27 Message-ID: References: <20050910 DOT 112834 DOT 57973656 DOT boochang AT m4 DOT kcn DOT ne DOT jp> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Krzysztof Duleba wrote: > { > /* Should we erase */ > pkg.versions::iterator next_i = i; That should read set::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/