From -5068346323509818550
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,c45bddfadd5b4855
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1994-09-12 19:42:47 PST
From: jr@grenoble.hp.com (Jean-Rene Bouvier)
Date: Mon, 12 Sep 1994 06:19:08 GMT
Subject: Re: C++ templates standard
Message-ID: <Cw06vx.1yu@hpgndlab.grenoble.hp.com>
Organization: Hewlett-Packard
Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!usc!sdd.hp.com!hplabs!hplntx!hpbbn!hpgndlab!jr
Newsgroups: comp.std.c++
References: <CvpIE8.K1@hpgndlab.grenoble.hp.com> <JASON.94Sep7141307@deneb.cygnus.com>
Sender: news@hpgndlab.grenoble.hp.com (News Admin (F.Pernoud))
Nntp-Posting-Host: hptnobr.grenoble.hp.com
Lines: 20

In article <JASON.94Sep7141307@deneb.cygnus.com>, jason@cygnus.com (Jason Merrill) writes:
> >>>>> Jean-Rene Bouvier <jr@grenoble.hp.com> writes:
> 
> > I've tried several compilers for the following piece of code, but none
> > accepted it.
> > Does anyone know whether my code is legal or not ?
> 
> It isn't.  Class templates cannot be nested.
> 
> Jason

Is there any reason - besides compilers complexity - to forbid nested
templates. I can't see why there would be an issue with them, has that
question been debated at ANSI ?

BTW: none of my compilers told me I was using an illegal construct; indeed one
of them even spat a 'sorry, not implemented (I know, no compiler holds the 
truth...).

- jr.


