From 4638643968466730410
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,a717e2be944aa399
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1993-04-10 16:32:36 PST
Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!zaphod.mps.ohio-state.edu!uwm.edu!linac!att!att!allegra!alice!bs
From: bs@alice.att.com (Bjarne Stroustrup)
Newsgroups: comp.std.c++
Subject: Re: a library construction issue - forward references to nested classes
Message-ID: <25269@alice.att.com>
Date: 10 Apr 93 16:55:39 GMT
Article-I.D.: alice.25269
References: <C580H4.HIF@watson.ibm.com>
Organization: AT&T Bell Laboratories, Murray Hill NJ
Lines: 23



derek@watson.ibm.com (Derek Lieber @ IBM T.J. Watson Research Center) writes

 > My question is: what, if anything, does the ANSI committee
 > say about forward references to nested classes? Are they to
 > be allowed? The ARM doesn't seem to say one way or the other.

The ability to forward declare nested classes was approved at the
Portland meeting last month:

	class X {
		class C;  // (forward) declaration of member class
		void f(); // declaration of member function
		// ...
	};

	class X::C { ... } // definition of member class
	void X::f() { ... } // definition of member function

Implementations will appear in furture relases. Future printings
of the ARM will contain an appendix listing such resolutions.



