Re: [aspell-devel] Bug in vector.hpp

2006-08-30 Thread Kevin Atkinson
On Wed, 30 Aug 2006, Peter Kümmel wrote: Kevin Atkinson wrote: Ok thanks for the info. I will apply the patch for aspell 0.60.5. Isn't the next release 0.61? I plan to do a minor release before that.___ Aspell-devel mailing list Aspell-devel@gnu.

Re: [aspell-devel] Bug in vector.hpp

2006-08-30 Thread Peter Kümmel
Kevin Atkinson wrote: > Ok thanks for the info. I will apply the patch for aspell 0.60.5. Isn't the next release 0.61? ___ Aspell-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/aspell-devel

Re: [aspell-devel] Bug in vector.hpp

2006-08-30 Thread Kevin Atkinson
On Wed, 30 Aug 2006, Peter Kümmel wrote: Kevin Atkinson wrote: On Wed, 30 Aug 2006, Peter Kümmel wrote: std::vector::end() returns an iterator that points just beyond the end of the vector. So &*thin->end() is no valid code, because it is a out of bound access. std::vector::back() returns a

Re: [aspell-devel] Bug in vector.hpp

2006-08-30 Thread Peter Kümmel
Kevin Atkinson wrote: > On Wed, 30 Aug 2006, Peter Kümmel wrote: > >> std::vector::end() returns an iterator that >> points just beyond the end of the vector. >> >> So &*thin->end() is no valid code, because >> it is a out of bound access. >> >> std::vector::back() returns a reference to >> the la

Re: [aspell-devel] Bug in vector.hpp

2006-08-30 Thread Kevin Atkinson
On Wed, 30 Aug 2006, Peter Kümmel wrote: std::vector::end() returns an iterator that points just beyond the end of the vector. So &*thin->end() is no valid code, because it is a out of bound access. std::vector::back() returns a reference to the last element and a pointer to the last element i

Re: [aspell-devel] Bug in vector.hpp

2006-08-30 Thread Peter Kümmel
Peter Kümmel wrote: > std::vector::end() returns an iterator that > points just beyond the end of the vector. > > So &*thin->end() is no valid code, because > it is a out of bound access. > > std::vector::back() returns a reference to > the last element and a pointer to the last > element is: &ba

[aspell-devel] Bug in vector.hpp

2006-08-30 Thread Peter Kümmel
std::vector::end() returns an iterator that points just beyond the end of the vector. So &*thin->end() is no valid code, because it is a out of bound access. std::vector::back() returns a reference to the last element and a pointer to the last element is: &back(). See attached patch. Peter Inde