home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_11_09 / 1109104a < prev    next >
Text File  |  1993-07-26  |  217b  |  20 lines

  1. void f()
  2.     {
  3.     class X
  4.         {
  5.     public:
  6.         X(int i);
  7.         operator int();
  8.         // ...
  9.     private:
  10.         int n;
  11.         // ...
  12.         };
  13.     X::X(int i) { n = i; }            // error
  14.     X::operator int() { return n; }        // error
  15.     // ...
  16.     }
  17.  
  18.  
  19.  
  20.