These two shoule not be member functions, but regular functions instead:
bool InsetCommandParams::operator==(InsetCommandParams const & o) const { return cmdname == o.cmdname && contents == o.contents && options == o.options; } bool InsetCommandParams::operator!=(InsetCommandParams const & o) const { return !(*this == o); } Like this: // inline perhaps? bool operator==(InsetCommandParams const & o1, InsetCommandParams const & o2) { return o1.getCmdName() == o2.getNmdName() && o1.getContents() == o2.getContents() && o1.getOptions() == o2.getOptions(); } // inline perhaps? bool operator!=(InsetCommandParams const & o1, InsetCommandParams const & o2) { return !(o1 == o2); } -- Lgb