Re: [Dev-C++] templates in C++ : precisions
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ho...> - 2003-01-12 16:43:43
|
-------Original Message-------=0D =0D From: erwan ancel=0D Date: =CA=F5=F1=E9=E1=EA=DE, 12 =C9=E1=ED=EF=F5=DC=F1=E9=EF=F2 2003 6:29:= 49 =EC=EC=0D To: Ioannis Vranos=0D Subject: Re: [Dev-C++] templates in C++ : precisions=0D =0D ???=0D You're right. The change from class to typename made my code compile, but= I continued with coding, and now, when I change my code from typename to cl= ass it does compile... I do not know what makes it compile now...=0D Anyway, I will stay with the class keyword. I found it more beautiful :)=0D =0D nb: there is no B(), this was just a simple sample to illustrate my probl= em. =2E I thought ....=0D =0D =0D =3D> :) As i said the typename and class words there are equivalents. cla= ss doesn't mean it is for classes only, rather it is meant to mean type. The fact that they are equivalents is not from my mind, this is how they are defined in the ANSI/ISO C++ 1998 standard.=0D =0D =0D As far as why it didn't compile before, it is 100% certain that you did s= ome type of mistake (probably some typo).=0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 |