Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | What happens for InsetList/Inset table if you define inset_iterator as | friend class inset_operator {... > | I am not even sure this is good c++. Just wondering. > | + * 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) -- Lgb