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 14:17:15
|
-------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 3:51:= 27 =EC=EC=0D To: dev...@li...=0D Subject: Re: [Dev-C++] templates in C++ : precisions=0D =0D This is only a function declaration, not a call.=0D =0D =3D=3D> Then you declared a function without a return type.=0D =0D Correct it to void B();=0D =0D =0D Anyway, somebody on the=0D gcc-help mailing list gave me a solution that seems to work: replace=0D "template <class T>" by "template <typename T>". But I don't know why ...= =0D =0D =0D =3D=3D> The typename has exactly the same effect. They are both equivalen= ts for the definition of template arguments.=0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 |