From -8516968525323545072
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f78e5,69b769f6f54d9efb
X-Google-Attributes: gidf78e5,public
From: Alexandre Oliva <oliva@dcc.unicamp.br>
Subject: Re: Template specialization inside a template class
Date: 1999/02/27
Message-ID: <orsobsdzs1.fsf@araguaia.dcc.unicamp.br>#1/1
X-Deja-AN: 449310069
X-NNTP-Posting-Host: araguaia.dcc.unicamp.br
Content-Transfer-Encoding: 8bit
Approved: stephen.clamage@sun.com (comp.std.c++)
References: <36d718c0.0@10.1.1.65>
X-UID: 0000000001
X-Status: $$$T
Content-Type: text/plain; charset="iso-8859-1"
X-Complaints-To: usenet@dcc.unicamp.br
X-Trace: iguacu.dcc.unicamp.br 920103582 18408 143.106.7.14 (27 Feb 1999 08:19:42 GMT)
Organization: IC - UNICAMP - Campinas, SP, Brazil
Mime-Version: 1.0
User-Agent: Gnus/5.070077 (Pterodactyl Gnus v0.77) XEmacs/20.4 (Emerald)
NNTP-Posting-Date: 27 Feb 1999 08:19:42 GMT
Newsgroups: comp.std.c++
X-MIME-Autoconverted: from quoted-printable to 8bit by ha2mpka.eng.sun.com id AAA12223
Originator: clamage@taumet


On Feb 26, 1999, "Andrei Alexandrescu" <alexandrescua@micromodeling.com> wrote:

> Is the following legal?

> template <class T, class U = int> class A {
>     template <class V> class B { ...  };
>     template <> class B<T> { ...  };

Nope, the C++ grammar doesn't accept explicit-specializations as
member-declarations.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org,computer.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Instituto de Computa��o, Universidade Estadual de Campinas, SP, Brasil


[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]




