[Xapian-discuss] bug in position_list_end?

James Aylett james-xapian at tartarus.org
Sat Jul 14 20:01:44 BST 2007


On Sat, Jul 14, 2007 at 05:14:22PM +0200, ...lorenzo wrote:

> >> it seems to me that method Database::position_list_end doesn't work!
> >> it returns a null pointer!
> >> any other way to know how long is a position list?
> >
> >The end doesn't tell you how long the position list is, it tells you
> >whether you've got to the end. That's a pretty standard STL-ism.
> 
> i was using it to know if i was at the end, comparing with my actual
> position:
> e.g.
> 
> actual_position==position_list_end_iterator
> 
> is it wrong?

That's correct. It should work fine - don't worry about how it
actually works!

J

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org



More information about the Xapian-discuss mailing list