[Xapian-devel] C++ MatchDecider::operator() is const

James Aylett james-xapian at tartarus.org
Wed Oct 1 15:36:44 BST 2008


On Wed, Oct 01, 2008 at 03:28:08PM +0100, Eric Sellin wrote:

> Why is MatchDecider::operator() a const in the C++ API?
> 
> An implementation of MatchDecider might want to store stuff in member
> variables so the decision on one document can depend on other decisions
> already made on previous documents.

Wouldn't you need to guarantee the order in which documents are
processed for this to work?

J

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



More information about the Xapian-devel mailing list