On Mon, Oct 13, 2003 at 01:10:59PM +0300, Martin Vermeer wrote: > It appears the attached is needed to compile.
Not in Standard-C++ IIRC. > ;-) and I am not sure that this is the right/best way to fix it. But > it works. I'd rather add the const on the other operand. > > // The previews are drawn only when we're not editing the inset. > - bool const editing_inset = mathcursor && mathcursor->formula() == this; > + bool const editing_inset = > + mathcursor && mathcursor->formula() == const_cast<InsetFormula > *>(this); > + bool const editing_inset = > + mathcursor && > + const_cast<InsetFormula const *>(mathcursor->formula()) == this; Andre'