From: =?iso-8859-1?Q?Andr=E9_P=F6nitz?= Newsgroups: comp.lang.c++,comp.os.msdos.djgpp,gnu.g++.help Subject: Re: Warning : value_type is implicitly a typename (gcc/gpp-3.1) Followup-To: gnu.g++.help Date: 13 Aug 2002 14:38:06 GMT Organization: Chemnitz University of Technology Lines: 22 Message-ID: References: NNTP-Posting-Host: millo.mpi.htwm.de X-Trace: narses.hrz.tu-chemnitz.de 1029249486 15361 141.55.225.177 (13 Aug 2002 14:38:06 GMT) X-Complaints-To: abuse AT tu-chemnitz DOT de NNTP-Posting-Date: 13 Aug 2002 14:38:06 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In gnu.g++.help Alex Vinokur wrote: > Nevertheless, there is inequality of rights > between > typedef map >, less > map1_typename; > and > typedef map >, less > map2_typename; > > map1_typename does NOT require the 'template' word (because of BBB ? ) > map2_typename DOES require the 'template' word (because of BBB ? ) > > Any explanation ? I think 'typename' is needed if and only if the type in question depends on the template parameter type, i.e. T1 in this case. [I seem to have heard something like that, but I am too lazy to look it up right now and it would explain your observation rather well....] Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)