🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #1521

Re: nested classes in template (syntax)

#1521
From: Alain MINIUSSI
Date: Fri, 28 Jul 1995 17:12
41 lines
1473 bytes
In article <3vb4rr$2h3@serveur.cribx1.u-bordeaux.fr>, miniussi@labri.u-bordeaux.fr (Alain MINIUSSI) writes:
|> I like to declare nested classes this way :
|> 
|> in A.h :
|> 
|> class A {
|>   public:
|>     class B;
|>   public:
|>     A();
|>  etc....
|> };
|> 
|> in A_B.h:
|> 
|> class A::B {
|>   public:
|>     B();
|>    ~B();
|>   etc...
|> };
|> 
|> in A_B.cc :
|> 
|> A::B::B() : etc...
|> 
|> what is the correct syntax if A is a template class ?

the other question is:
  - does the standard allow that kind of stuff and, if not 
(my compiler says no) : why ?
 
-- 
*=================================================================*
    Miniussi Alain  	    	        tel: (33) 56-84-69-08
    LaBRI	                        fax: (33) 56-84-66-69
    Univ. BORDEAUX I          
    351, cours de la Liberation        
    33405 TALENCE 	
    FRANCE                    e-mail:miniussi@labri.u-bordeaux.fr
*=================================================================*
Technical Details
Message-ID: <3vb5q5$2md@serveur.cribx1.u-bordeaux.fr>
Path: arc1-ca.pugleaf.net!cribx1.u-bordeaux.fr!labri!miniussi
References: <3vb4rr$2h3@serveur.cribx1.u-bordeaux.fr>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!cribx1.u-bordeaux.fr!labri!miniussi
From: miniussi@labri.u-bordeaux.fr (Alain MINIUSSI)
Newsgroups: comp.std.c++
Subject: Re: nested classes in template (syntax)
Date: 28 Jul 1995 17:12:37 GMT
Organization: Laboratoire Bordelais de Recherche en Informatique
Distribution: world
Message-ID: <3vb5q5$2md@serveur.cribx1.u-bordeaux.fr>
References: <3vb4rr$2h3@serveur.cribx1.u-bordeaux.fr>
NNTP-Posting-Host: waves.labri.u-bordeaux.fr