[Xapian-devel] Branching for 1.1

Olly Betts olly at survex.com
Fri Feb 22 12:09:09 GMT 2008


On Fri, Feb 22, 2008 at 11:57:12AM +0000, Richard Boulton wrote:
> I'm not sure whether it's safe if the copy constructor or assignment 
> operator on the subclass are used, though - I'll double-check that.

I think it will fail, because we expect to be able to do things like:

    Xapian::Stem copy_of_stemmer = stemmer;

And that doesn't work if stemmer is a subclass of Xapian::Stem.

Mind you, making Xapian::Stem wrap an enum doesn't help here either...

Cheers,
    Olly



More information about the Xapian-devel mailing list