🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Henry Chang Mon, 23 Nov 1992 00:53
Nested Templates
#595
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads