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