Skip to content

Remove explicit implementations of operator!= from our classes

Remove explicit implementations of operator!= from our classes

...and use boost::equality_comparable<> instead. Autogenerated comparison operators are less error-prone since it is more difficult to forget about them.

There are several exceptions still:

  1. KisSharedPtr and KoID implement their own operator to avoid inclusion of <boost/operators.hpp> everywhere.
  2. Python-related classes need explicit implementation (or using clause) to be compatible with sip.

Merge request reports

Loading