🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #595

Nested Templates

#595
From: Henry Chang
Date: Mon, 23 Nov 1992 00:53
23 lines
1067 bytes
It is my understanding that nested templates are not yet supported.
Does someone have a work-around?

What I wish to do is essentially...
**********************************************************************
template <class X, class Y> class A { };
template <class X> class B { };

template <class X, class Y> class C {
   B<A<X,Y>> a;
};

main ()
{
   C<int,int> a;                // This causes the error to be produced
}
**********************************************************************
		
-Henry Chang	

-- 
Henry Chang				           henryc@ic.Berkeley.EDU
UC Berkeley Graduate Student                                 Berkeley, CA
Technical Details
Message-ID: <1992Nov23.005355.3488@pasteur.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!pasteur!ic.Berkeley.EDU!henryc

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!pasteur!ic.Berkeley.EDU!henryc
From: henryc@ic.Berkeley.EDU (Henry Chang)
Subject: Nested Templates
Message-ID: <1992Nov23.005355.3488@pasteur.Berkeley.EDU>
Sender: nntp@pasteur.Berkeley.EDU (NNTP Poster)
Nntp-Posting-Host: ic.berkeley.edu
Organization: EECS CAD Group, UC Berkeley
Date: Mon, 23 Nov 1992 00:53:55 GMT
Lines: 23