#include #include using namespace std; class tester { public: string s; tester(string str) : s(str) {}; bool operator != (tester &t) { cout << this->s << " was tested against " << t.s << endl; return false; } }; int main (int argc, char **argv) { tester t1("t1"), t2("t2"); if (t1 != t2) { cout << "OK" << endl; } return EXIT_SUCCESS; }