From -8473523718093089215
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,297e1191220ad2df
X-Google-Attributes: gidf78e5,public
From: sbnaran@localhost.localdomain (Siemel Naran)
Subject: Re: [Q] function member template in a template class
Date: 1999/05/10
Message-ID: <slrn7jdp80.nmg.sbnaran@localhost.localdomain>#1/1
X-Deja-AN: 476185111
Approved: Valentin Bonnard <bonnard@clipper.ens.fr>
References: <hinnant-0405991054460001@ith3-285.twcny.rr.com> <B35C6DB3-625F1@192.168.1.8>
X-Original-Date: 10 May 1999 13:56:25 GMT
X-Authentication-Warning: backdraft.briar.org: smap set sender to <news@vixen.cso.uiuc.edu> using -f
Organization: University of Illinois at Urbana-Champaign
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUANzbo/awEuYhIxRhxAQEJjgH+NkaMC711+sZP5cy5g0XTMTfoWmdpL6lF HbXRFpl6icL9TOKCFq+owLwyja91q5HLH+2BwhxaiIAwKbtszJAz5w== =cNXP
Reply-To: sbnaran@uiuc.edu
Newsgroups: comp.std.c++

On 10 May 99 12:39:59 GMT, Gabor Greif <gabor@no.netopia.com> wrote:

>>        typename Res<J, T> foo(void);
>
>Here typename is not allowed, since it is inferrable that Res<J, T> is a
>type. The typename would be necessary to disambiguate the access to some
>member in Res<J, T>, such as a typedef or a nested class.

Yes.  But I also think the presence of the word 'typename' there is
harmless, so maybe the C++ grammar should be changed to allow it.  On,
the other hand, allowing a redundant 'typename' doesn't solve any big
problems and might accidentally cause other problems.

-- 
----------------------------------
Siemel B. Naran (sbnaran@uiuc.edu)
----------------------------------
---
[ 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              ]



