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

Eric Sellin eric at rxl1.com
Wed Oct 1 15:28:08 BST 2008


Hello all,

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.

There must be a valid reason why it's const but I can't see.

Thanks,
Eric.





More information about the Xapian-devel mailing list