On Friday 07 June 2002 5:28 pm, Lars Gullik Bjønnes wrote:
> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
> | +   * lyxfont.C (operator==, operator!=): strange error message about
> | +   LyXFont::FontBits being private. Yes? and? Redefining the parameter as
> | +   FontBits cures it. Go figure!
> |
> | I thought such operators should be declared outside of classes, like
> | bool operator==(LyXFont::FontBits const & fb1, LyXFont::FontBits const &
> | fb2) const
> |
> | I am sure Lars knows better than I do on this case.
>
> Yes, it should usually be out of class. (that goes for most binary-arg
> operators)

In that case, the definition of class LyXFont::FontBits must be made public. 
Ok, I'll do that. The code is compiling now.

Are you happy if I commit the patch?

Angus

Reply via email to