home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12774 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  938 b 

  1. Xref: sparky comp.lang.c++:12774 comp.std.c++:1108
  2. Path: sparky!uunet!pmafire!news.dell.com!swrinde!mips!mips!munnari.oz.au!cs.mu.OZ.AU!jane
  3. From: jane@mullian.ee.mu.OZ.AU (jane lynette cosham)
  4. Newsgroups: comp.lang.c++,comp.std.c++
  5. Subject: How do I forward declare a nested class?
  6. Message-ID: <jane.714579755@munagin>
  7. Date: 23 Aug 92 14:22:35 GMT
  8. Sender: news@cs.mu.OZ.AU
  9. Organization: Computer Science, University of Melbourne, Australia
  10. Lines: 17
  11.  
  12. This is something I keep coming up to and can never figure out the
  13. syntax for.
  14.  
  15. How do you forward declare a nested class?
  16.  
  17. eg if I have a class A and 2 classes nested within A (say B & C), and
  18. functions in both B and C take pointers to the other (ie C needs A::B*
  19. and B needs A::C*) - how do I do this?
  20.  
  21. BTW I am using both BC 3.0 and MSC 7.0 and can't figure this out for
  22. either.  I can't find any reference to this in manuals for either
  23. compiler or in the ARM.
  24.  
  25.  
  26. Thanks to all
  27.  
  28. Jane
  29.