home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / progc / fixed300.arj / CDSS0015.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1991-03-01  |  310 b   |  20 lines

  1. #if 0
  2. From:
  3. Subject:
  4. Status: Same as bug23.cpp, fixed in 2.2
  5. #endif
  6.  
  7. class two;
  8.  
  9. class one {
  10.     friend int two::peeker(one &);    //should give syntax error
  11.     int pp;
  12. };
  13.  
  14. class two {
  15.     int hold;
  16. public:
  17.     // shouldn't give error about pp being private
  18.     int peeker(one& a) { return hold = a.pp; }
  19. };
  20.