From -4169255849974916417
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,69b769f6f54d9efb
X-Google-Attributes: gidf78e5,public
From: Biju Thomas <bijuthom@ibm.net>
Subject: Re: Template specialization inside a template class
Date: 1999/03/03
Message-ID: <36DCBB88.91CE18A0@ibm.net>#1/1
X-Deja-AN: 450702984
Content-Transfer-Encoding: 7bit
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
References: <36d718c0.0@10.1.1.65> <orsobsdzs1.fsf@araguaia.dcc.unicamp.br> <slrn7dgtlv.6fo.sbnaran@bardeen.ceg.uiuc.edu> <36D98661.37F556C1@ibm.net> <36daa8d4.0@10.1.1.65>
X-Original-Date: Tue, 02 Mar 1999 21:33:12 -0700
X-Notice: should be reported to postmaster@ibm.net
X-Authentication-Warning: backdraft.philabs.research.philips.com: smap set sender to <bijuthom@ibm.net> using -f
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: news@news.unimelb.edu.au
X-Trace: izvestia.its.unimelb.edu.au 920456032 19189 128.250.29.16 (3 Mar 1999 10:13:52 GMT)
Organization: Home
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUANt0LR+EDnX0m9pzZAQG7iAF/bXR6D/ixSrGZGuB9f2DYvupl1mhcB50n FFPPvIGuFri7iIXN5Krczx9DPsEEXwtZ =KP3u
Mime-Version: 1.0
Reply-To: bijuthom@ibm.net
NNTP-Posting-Date: 3 Mar 1999 10:13:52 GMT
Newsgroups: comp.std.c++

Andrei Alexandrescu wrote:
> 
> Biju Thomas wrote in message <36D98661.37F556C1@ibm.net>...
> >Also, I tried it on egcs and it works. It looks
> >like an omission from the grammar.
> 
> I also tried it with egcs 1.1.1 (mingw32) and it doesn't work. What
> version are you using?

This was the example I tried:

  template <class T > class A 
  {
  public:
    template <class V> class B { };
    template <> class B<T> { };
  }; 

I was just trying to see whether this syntax (explicit specialization
within a class definition) is accepted by the compiler. (On egcs-2.91.57
19980901).

But, beyond the parsing level, when I try to use the class, it gives
errors, access violations etc. I gave up.

-- 
Best regards,
Biju Thomas
---
[ 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              ]



