Re: [Dev-C++] templates in C++ : precisions
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel G. <sp...@ho...> - 2003-01-12 16:45:44
|
I believe VC++ 6.0 has a problem with templates, hence template T not class T. r something >From: "Ioannis Vranos" <no...@ho...> >To: "Dev-C++ Mailing List" <dev...@li...> >Subject: Re: [Dev-C++] templates in C++ : precisions >Date: Sun, 12 Jan 2003 16:17:02 +0200 (GTB Standard Time) > >-------Original Message------- > >From: erwan ancel >Date: ÊõñéáêÞ, 12 ÉáíïõÜñéïò 2003 3:51:27 ìì >To: dev...@li... >Subject: Re: [Dev-C++] templates in C++ : precisions > >This is only a function declaration, not a call. > >==> Then you declared a function without a return type. > >Correct it to void B(); > > > Anyway, somebody on the >gcc-help mailing list gave me a solution that seems to work: replace >"template <class T>" by "template <typename T>". But I don't know why ... > > >==> The typename has exactly the same effect. They are both equivalents for >the definition of template arguments. > > >Ioannis Vranos > >* Programming pages: http://www.noicys.freeurl.com >* Alternative URL: http://run.to/noicys _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail |