/* Example programs from the book Scientific and Engineering Programming in C++: An Introduction with Advanced Techniques and Examples, Addison-Wesley, 1994. (c) COPYRIGHT INTERNATIONAL BUSINESS MACHINES CORPORATION 1994. ALL RIGHTS RESERVED. See README file for further details. */ #include "SciEng/Boolean.h" #include template Boolean operator!=(const T& lhs, const T& rhs){ return ! (lhs == rhs); } class A { public: friend Boolean operator==(const A& lhs, const A& rhs); }; Boolean operator==(const A& lhs, const A& rhs){ return Boolean::true; } main(){ A a; A b; if (a != b){ return EXIT_FAILURE; } return EXIT_SUCCESS; }