delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/13/00:24:52

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: template class composition
Date: Thu, 12 Jun 1997 08:55:43 -0700
Organization: Alcyone Systems
Lines: 17
Message-ID: <33A01BFF.7538E88B@alcyone.com>
References: <3398B2C9 DOT 155E AT xl DOT ca>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Darren Grant wrote:

> Is it possible to compose two template classes, ta<T> and  tb<T>, in a
> type declaration?  (i.e. ta<tb<T>>)  How is this accomplished with gcc?

Sure, you must, however, write the result strangely to avoid conflict with
the >> token:

    ta<tb<T> >

-- 
       Erik Max Francis, &tSftDotIotE / email / max AT alcyone DOT com
                     Alcyone Systems /   web / http://www.alcyone.com/max/
San Jose, California, United States /  icbm / 37 20 07 N  121 53 38 W
                                   \
     "Covenants without the sword / are but words."
                                 / Camden

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019