#include using namespace std; class B { int b; public: B(int i) : b(i) {} operator int() const; }; B::operator int() const { cout << "* B:: operator int() called\n"; return b; } int main() { B eight(8); cout << eight << endl; cout << eight + 5 << endl; cout << 5 + eight << endl; cout << (eight > 3) << endl; }