00001 class X 00002 { 00003 public: 00004 X(int i_ = 0) : i(i_) {} 00005 ~X() {} 00006 operator int() const { return i; } 00007 00008 private: 00009 int i; 00010 }; 00011